Hello,
I have a window (it's a QWidget, not a main window) that contains a QScrollArea, that itself contains a QFormLayout with widgets in it.
The following scenario works: I populate the QFormLayout with widgets during the construction of the window, then I resize the window using resize(sizeHint()), and finally I present the window using showNormal() followed by activateWindow().
Now, I'm trying to add more widgets to the QFormLayout at runtime, after the window was presented. The widgets appear correctly, but the resize(sizeHint()) trick doesn't enlarge the window; instead, the QScrollArea now shows a vertical scrollbar.
What it the correct way to basically tell the QScrollArea to *not* show a scrollbar, but to instead resize the window so that all the widgets become visible?
Cheerz,
Franz
Bookmarks