Using Stylesheets with Qt Widgets Designer

Since Qt 4.2, it is possible to edit stylesheets in Qt Widgets Designer with the stylesheet editor.

Screenshot of form editor showing a label and line editor with the option highlighted to change stylesheet from the context menu Setting a Stylesheet

The stylesheet editor can be accessed by right-clicking a widget and selecting Change styleSheet...

Screenshot showing the preview of used stylesheet

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.