Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.15.17, 6.8.0
Description
If a QFrame having a QHBoxLayout with QWidget added to the Layout is set to QScrollArea, the width of added QWidget shows zero in showEvent()
If the QWidget is set directly to QScrollArea it works but if it is being added through QFrame this does not.
Attached example reproduces it:
Just run the example and in output it will say zero. If you enable #if in line 21 that will work.
Entire idea to have QFrame is to insert other instances of QWidget (ReplayGroupWidget in example) at runtime in the containerLayout, in ReplayGroupWidget::showEvent idea is to calculate new width and then call resize so that at run time when widget is added it can be resized accordingly.