Hi all,

I've stumbled on a potential issue concerning the usage of stylesheets and
QWidget::palette() (to get colors set by the stylesheet). In a nutshell,
accessing palette() within the constructor of the object (e.g QWidget) does
not work.

I've described the issue fully here:
http://qt-project.org/forums/viewthread/43082/#178369

Somebody has even provided a nice workaround (using QTimer::singleShot so
that the code accessing palette() is executed after the object creation is
completed).

I'm OK with the workaround, I'm posting here just to be sure the behaviour
is normal and not a bug.
If anybody has a better workaround, I'd be glad to read about it :)

MaX.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to