We’ve added a new utility module to the SlicerSandbox extension, StyleTester. StyleTester allows you to test modifying the appearance of the Slicer GUI using Qt Style Sheets. Qt Style Sheets provide an very powerful method for customizing every aspect of the appearance of a Qt-based application like Slicer.
QSS code can be entered into the editor, or loaded from / saved to .qss files. The module provides a set of example widgets that can be used to view effects of stylesheets on the most widely used objects. The StyleTester source code is also a good reference for reading and using stylesheets in custom code.
Example of applying a simple stylesheet to all of Slicer:
The StyleTester is available starting in today’s Preview build through the SandBox extension.
Sam