[Interest] How to improve Qt's QSS/CSS performance on embedded devices?

Thiago Macieira thiago.macieira at intel.com
Mon Jan 9 18:39:34 CET 2017

On segunda-feira, 9 de janeiro de 2017 08:28:50 PST Michael Herzlich wrote:
> Hi Qt developers,
> I ran into performance problems with Qt for embedded Linux 4.8.3 on custom
> hardware. The styling of the UI is done with QSS and no custom painting
> code. There are multiple measurements visualized in this post in the
> Qt-forum:
> https://forum.qt.io/topic/74733/how-to-improve-qt-s-qss-css-performance-on-> embedded-devices 
> I got a hint to post this topic to the mailing list. Maybe someone has
> experiences with the styling framework on low-performance hardware and tips
> for optimization? Answers such as "you should not have gone for the QSS at
> all" are also fine,... sad... but fine ;-) 

First of all, upgrade to at the very least 4.8.7. Second, schedule a port to 
Qt 5.

Third, like Jason said, the way to improve performance with stylesheets is to 
make them smaller. Not by removing spaces, but by removing selectors. Use 
stylesheets as little as you can. They're meant for final touches in UIs, not 
for designing UIs.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list