Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

QtCreatorStyling: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
=<span class="caps">THE</span> <span class="caps">INFORMATION</span> <span class="caps">BELOW</span> IS <span class="caps">NOT</span> UP TO <span class="caps">DATE</span>=
Since version 3.3, Qt Creator supports custom styles without the need to go through the hassle of stylesheets.
=Qt Creator styling=
=Qt Creator styling=



Revision as of 07:16, 10 February 2015

THE INFORMATION BELOW IS NOT UP TO DATE

Since version 3.3, Qt Creator supports custom styles without the need to go through the hassle of stylesheets.

Qt Creator styling

Just like other Qt applications, Qt Creator accepts custom styles and stylesheets [qt.io]. The styling will only be applied as long as you pass the arguments; it will not persist across sessions or be carried over to new versions of Creator.

Exercise caution when applying styles, as overriding the existing styling may make some items difficult to see. Also be aware of the Text Editor’s color scheme (Tools > Options > Text Editor > Fonts & Colors > Color Scheme) – setting a stylesheet may affect this. Designer may also be affected by stylesheets.

Styling Creator with stylesheets

For help with stylesheets, visit the stylesheet documentation [qt.io].

If you need to get more specific (e.g. specifying object names through ID selectors [qt.io] to style specific widgets), you may need to search through the various .ui files and source code here [qt.gitorious.org]. Alternatively, you can clone the Qt Creator Git repository with:

Custom stylesheets

stylesheet

File:Screenshot 63.png

Custom styles

Categories: