[Qt-interest] QStyle Vs Style Sheet.
Olivier Goffart
ogoffart at trolltech.com
Wed Dec 10 18:16:21 CET 2008
On Wednesday 10 December 2008 09:13:42 Rajiv Podar wrote:
> Hi All,
>
> I am working on a project in which we have a requirement to customise the
> controls(i.e. drawing of the control) so in order to achieve this we have
> implemented style sheet. But it results in extremly slowing down the
> project.
> So my question is can anybody suggest which is the optimal solution to
> customise the widgets : 1. By remplementing QStyle class.
> 2. By using style sheet.
>
> Please reply with the reason in terms of memory and speed of the code.
Depends of what you need to do.
Regarding speed issue, Qt 4.5 Has lot of speed optimizations, including in the
stylesheet code. You may want to try to test the Qt 4.5 snapshot to see if it
fits your need in terms of speed.
Reimplementing QStyle will be in any case is much more performant and
powerfull. But may be more complex to do.
More information about the Qt-interest-old
mailing list