Problem
The SVG images alone weren't the problem; instead, the overall setup of the application was, so to speak, somehow inefficient. The embedded device could be operated in a number of modes, and each of the modes had several swipeable screens. As the application didn't use QML, the swiping was implemented manually on top of a QtWidgets UI by composing all screens of a mode in one long widget, of which only a part would be visible at a given time. Even worse, all the screens for all the modes were created at startup and hidden, except for the one for the current mode!
When we added the usage of SVG images, which are stored as an XML description of the contents and must be read from a file and parsed before they can be displayed, all of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access