Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.11
-
None
-
856284d525f7c7958e76843cac46d718f5325275
Description
If you set size constraints via style sheet they should be removed when you remove the style sheet.
Test case:
#include <QtWidgets> #include <QDebug> int main (int a, char **b) { QApplication app(a, b); QWidget w; w.show(); qDebug() << "Before everything: min_size=" << w.minimumSize(); w.setStyleSheet("QWidget { min-height: 50; max-height: 50;} "); qDebug() << "After setting constraints: min_size=" << w.minimumSize(); w.setStyleSheet("QWidget { min-height: 50; max-height: 50;} "); qDebug() << "After removing stylesheet: min_size=" << w.minimumSize(); return 0; }