[Qt-interest] Stylesheets and runtime styling...

Olivier Goffart ogoffart at trolltech.com
Mon Mar 2 14:41:35 CET 2009


On Monday 02 March 2009 04:08:50 Pankaj Chawla wrote:
> Hi
> I recently started using stylesheets and its amazing to be able to
> customize the look and feel
> using it. I am now wondering if I can extract all the CCS styling into an
> external file and the
> app picks it up on runtime to apply the styling. That will save me the
> trouble of recompiling
> every time I want to try a new style. I am using
> QWidget->setStyleSheet(<style string>) as
> of now to do the styling from within the code.

you can pass the command line argument  -stylesheet file.css to your 
application.





More information about the Qt-interest-old mailing list