Hello! I'm trying to customize QTextEdit colors via the stylesheet:
Qt Code:
textEdit->setStyleSheet ("color: " + text_color + "; background-color: " + back_color + "; selection-color: " + sel_text_color + "; selection-background-color: " + sel_back_color + ";");To copy to clipboard, switch view to plain text mode
text_color, back_color, etc. are QString variables. The colors are change, but the QTextEdit's scrollbar becomes unusable - the scrollbar receives just single clicks, no drag'n'drop of the scroller pointer, and it looks like it has no visual style at all.
Bookmarks