Hi,
I have a text entry whose background color is black and I want its scrollbar track color also to be black. But I get some pattern/texture similar to transparent part of a layer we see in Photoshop, applied to scrollbar's track.
Below is my code:
t = QPlainTextEdit('blah ' * 100, styleSheet='background: black; color: white; font-size: 12pt')
t.verticalScrollBar().setStyleSheet('background: black')
t.show()
app.exec_()
from PyQt5.QtWidgets import QApplication, QPlainTextEdit
app = QApplication([])
t = QPlainTextEdit('blah ' * 100, styleSheet='background: black; color: white; font-size: 12pt')
t.verticalScrollBar().setStyleSheet('background: black')
t.show()
app.exec_()
To copy to clipboard, switch view to plain text mode
in case someone want to know my problem visually, I have added an image showing gotten and desired (Photoshopped) result. See below:
Untitled-3.png
This is a very important issue for me, please kindly solve it if you can. I shall be very thankful to you.
Bookmarks