Performance considerations for Qt Widgets
The Qt Widgets module renders widgets utilizing the raster engine, a software renders using CPU rather than GPU. In most cases, it can provide the desired performance. However, the Qt Widgets module is very old and lacks the latest capabilities. Since QML is entirely hardware-accelerated, you should consider adopting it for your application's UI.
If your widgets don't need mouseTracking
, tabletTracking
, or similar event capturing, turn it off. Your application will use more CPU time as a result of this tracking. Maintain a smaller style sheet and keep it all in one style sheet instead of applying it to individual widgets. A large style sheet will take longer for Qt to process the information into the rendering system, which may affect the application's performance. Use custom styles instead of a style sheet as this can provide you better performance.
Don't create screens unnecessarily and keep them hidden. Create a...