Qt Widgets Designer Integration

Qt Widgets Designer is an excellent tool to preview style sheets. You can right-click on any widget in Designer and select Change styleSheet... to set the style sheet.

Editing a form in Qt Widgets Designer

In Qt 4.2 and later, Qt Widgets Designer also includes a style sheet syntax highlighter and validator. The validator indicates if the syntax is valid or invalid, at the bottom left of the Edit Style Sheet dialog.

Editing and validating a stylesheet

When you click OK or Apply, Qt Widgets Designer will automatically display the widget with its new stylesheet.

Preview of a form with the new 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.