PDA

View Full Version : Qt style sheet performance



vhptt
14th August 2012, 11:03
I have an GUI form application, develop on open suse and using QSS.
I put all stylesheet code into only one .qss file called: main.qss and load it into qApp.

qApp->setStyleSheet(s);
Problem is: perfomance really bad.
If I don't use stylesheet, everything goes fine but after I setStyleSheet, application run very slow.
How can I fix this ?

Lykurg
14th August 2012, 11:49
You can fix it in not using style sheets. This feature was never optimized and one should avoid it. Better customize QStyle or do custom painting inside the widgets.