-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.8.2, 6.8.4
-
None
After giving a stylesheet to a widget using QWidget::setStyleSheet that style gets applied to this widget and all it's eventual children, as expected.
But, while calling QWidget::styleSheet in the parent widget returns the stylesheet as expected, doing this call in one of it's children returns an empty string instead.
This issue can easily be dodged by manually calling setStyleSheet inside the parent widget after creating a child widget. Even then, the stylesheet remains un-getable in the constructor.
I have included a couple of small source files to easily reproduce the issue.