Oct-24-2021, 07:29 PM
(This post was last modified: Oct-24-2021, 08:10 PM by LavaCreeperKing.)
"The important parts are that the scrolled widget is larger than the scrollable area and that the scrollable area knows how big the scrolled widget is (setWidgetResizeable(True))."
But when I do self.scrollAreaWidgetContents.setGeometry(0, 0, 801, 800) or self.scrollAreaWidgetContents.resize(801,800) is that not making it larger than pkg_display(self.pkg_display.setGeometry(10, 40, 801, 401)? The problem I have with layout managers is I can't control where my widgets are placed or how big/small they are.
@Axel_Erfurt
Yes I could do that, but this the effect that I wanted to achieve.
EDIT: So I just removed self.pkg_display.setWidgetResizable(True) from my code... and now my scroll area works just fine.
But when I do self.scrollAreaWidgetContents.setGeometry(0, 0, 801, 800) or self.scrollAreaWidgetContents.resize(801,800) is that not making it larger than pkg_display(self.pkg_display.setGeometry(10, 40, 801, 401)? The problem I have with layout managers is I can't control where my widgets are placed or how big/small they are.
@Axel_Erfurt
Yes I could do that, but this the effect that I wanted to achieve.
EDIT: So I just removed self.pkg_display.setWidgetResizable(True) from my code... and now my scroll area works just fine.