[Qt-interest] Random stylesheet problems
Olivier Goffart
ogoffart at trolltech.com
Tue Feb 24 12:25:18 CET 2009
On Wednesday 04 February 2009 12:41:37 Dmitry Nezhevenko wrote:
> Hi.
>
> I'm experiencing some strange issues with stylesheets. Generally it works
> (at least in sandbox application), however after integration to main
> application (it uses a few QWinHosts) some controls are skinned
> incorrectly.
>
> Often various controls (buttons, lineedits) are skinned like QGroupBox,
> sometimes checkboxes are skinned like comboboxes etc.
>
> Behaviour is very random. So dialog may be skinned correctly, but after
> reopening it skinning may became incorrect.
>
> Also it looks like this is unreproduceable on slower machine. Any ideas?
Hi,
Does your application delete and creates lots of widgets?
There was one problem in Qt 4.4 related to the stylesheet cache. (Some widget
would still be in the cache even after they are deleted, so when new widget
are created with the same pointer address, they get a wrong stylesheet)
This has been fixed in Qt 4.5
More information about the Qt-interest-old
mailing list