
First do the entire Results"] QWidgetĬolor: black / so the labels can be seen/īackground: restore the standard appearance to Results"] QLineEdit,

This one needs to be treated differently. The method used below to color Issues and Compile Output doesn't work for Application QPlainTextEditīackground: Compile Output only some text can be changed, it seems. Unable to change the text color, at least this way. With Application Output, this only applies when an application is run or being debugged. Regarding Application Output and Compile Output, try these (Issues is a bonus, optional of course): In any case, your solution is a big step forward, but I think fixing the bug is what needs to happen here. I have the background set to a dark color but if I reset it to a light one then go into debug mode it sets it back to the original dark color on the screen but not in "Options". Interestingly, my problem is with the numbers themselves, not the background. I see what you mean with the line numbers. If you could do the same and include your solution it would help the original poster and maybe get some attention from the developers. There is a bug report on this which I have commented and voted on. Thanks for the solution to the text editor font issue. I've seen a "widget" and a "widget_2" in there. In any case, I wonder how well objects are named for our purpose.
#Qt dialog background color ui code
I also had a look at the source code but after a short while my brain hurt, which says more about me than it does the source. One tip, when playing around with style sheets and Qt Creator be prepared for numerous restarts! I really should do an item for the wiki on customising Qt Creator using style sheets, if there is any interest out there. Give it a try, and let me know if you would like the color adjusted if you would rather not do that yourself. Here's how mine looks (all on one line in my shortcut):Ĭ:\Qt64\qt-creator-3.0.0-圆4\bin\qtcreator.exe -stylesheet D:\Documents\Qt\Customise\sample.css Then modify your desktop shortcut to Qt Creator to point to the place chosen for the file, by adding to the end of the 'Target': -stylesheet your\path\to\sample.css The 'sample.css' file can be placed in any suitable location, perhaps with qtcreator.exe, but my preference would be to put it somewhere in Documents so it will not get lost when upgrading Qt.
#Qt dialog background color ui windows
I feel your pain Dave so here is a simple style sheet which uses a lightish-grey (like my hair) to take the glare off the area in question without, hopefully, making a mess #EAEAEA īackground-color: this into a text editor, say Notepad, and save it as sample.css or under another name if you prefer, but the extension must be css.įrom this point on I'm talking Windows 8, so appropriate adjustments need to be made to suit other operating systems. If for example the style sheet sets a really dark color as the background in the sidebar it will, of course, be really dark in those other places. And perhaps elsewhere not listed here nor known to mere mortals.

The body of the sidebar, which is the area dcbdbis would like to change is a QTreeView widget, which is also used in several places in the designer, the help window, various locations in the options dialog and also sets the text color in the To-Do Entries window at the bottom, if it is enabled. This can be done using a style sheet, but with side effects.
