How to add a QScrollArea as a tab in a QTabWidget
-
If I right click in a QTabWidget and select Insert Page/After Current Page it will add a new page containing a QWidget.
How can I make that into QScrollArea ...
I tried manually editing the ui file witha XML editor, but soon gave that up as a bad job.
Clearly I not approaching this from the right direction - surely this must be possible?
David
-
@Perdrix
Make what intoQScrollArea
? Where do you want this? You can add one onto tabs after they are created, if that is what you mean. Designer adds a blankQWidget
as a page, IIRC, you cannot change that fact, and should live with it. -
@Perdrix said in How to add a QScrollArea as a tab in a QTabWidget:
If I add a scroll area to the QWidget, I'm offered no way to set a layout on the QWidget
It is possible but it is counter-intuitive :)
- add the scroll area to the tab widget
- right-clic on the tab widget and choose Lay out-> Lay out horizontal or vertical
4/4