QStaticText support for QWidget and Creator integration request
I work mainly with embedded devices--Windows CE. Performance is a major issue that I have to deal with. In 4.7, it appears that QStaticText was added, which seems to have given noticeable performance increases. Was wondering if this could be extended in the form of a check-box, or something to this effect in Creator, for standard QWidget items, such as a push button, label, etc...? Being that we're using widgets, and not implementing our own paint overrides, if there was a way to have this more automatic, this may be advantageous to standard forms.
Or, if this is already possible, is there an easy way to do this, or modify some core code for this type of change? Thanks,
I think the best thing to do is to report your request in the "official Qt bug tracker":http://bugreports.qt.nokia.com/. There you have the guarantee a Qt developer you take a look at your request =)
Sounds good, will do. Thanks.
Even better would be to get a git clone of Qt source tree, patch it yourself and file a merge request.
Yep, I also think you'd better look into this yourself and make a merge request. I don't think such a task will have a high priority since developers are moving away from QWidget and are working on QML.
The problem of such a task is that it requires to modify the rendering of each widget to use QStaticText. In each case, some consideration have to be taken regarding memory consumption for the typical use of the widget.
What you are asking, the ability to dynamically use QStaticText, is also of difficult because it doubles lots of path in rendering and model handling.