- [ ] Fullscreen when starting with a file « Startup « General « General « Settings... « Tools
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -stylesheet test.qss
Moderators: helmut, XnTriq, xnview
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -stylesheet test.qss
The author links to this page:Girish Ramakrishnan ([url=http://labs.qt.nokia.com/2007/11/27/theming-qt-for-fun-and-profit/]Theming Qt for fun and profit[/url]) wrote:Qt 4.3′s well kept secret
In Qt 4.3, users can customize the style of any application without touching or recompiling the code. All Qt applications can take an external stylesheet using the -stylesheet command line switch. So, create a file called mystyle.qss containing “QPushButton { background: red; }”. Now start, any Qt applications as “qtapp -stylesheet mystyle.qss”. Sweeeet.
My findings so far:Qt Rference Documentation (QApplication Class Reference » [url=http://doc.trolltech.com/latest/qapplication.html#QApplication]QApplication::QApplication[/url]) wrote:All Qt programs automatically support the following command line options:
- -style= style, sets the application GUI style. Possible values are motif, windows, and platinum. If you compiled Qt with additional styles or have additional styles as plugins these will be available to the -style command line option.
- -style style, is the same as listed above.
- -stylesheet= stylesheet, sets the application styleSheet. The value must be a path to a file that contains the Style Sheet. Note: Relative URLs in the Style Sheet file are relative to the Style Sheet file's path.
- -stylesheet stylesheet, is the same as listed above.
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -style test.qss
C:\Progra~1\XnViewMP\xnview.exe -style=test.qss
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -style plastique
C:\Progra~1\XnViewMP\xnview.exe -style=plastique
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -stylesheet test.qss
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -stylesheet=test.qss
Code: Select all
C:\Progra~1\XnViewMP\xnview.exe -style=plastique -stylesheet=test.qss