[Interest] Issue with stylesheet and palette()

2014-05-27 Thread Massimiliano Maini
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:

Re: [Interest] Issue with stylesheet and palette()

2014-05-27 Thread Tony Rietwyk
Hi Max, In our Qt 4.8.6 app we use the Polish event to apply changes after the styles are set in our base window class: bool BaseForm::event(QEvent *event) { bool result = QDialog::event( event ); if (event-type() == QEvent::Polish) {