PYQT5 Stacked Widgets not resizing
-
I'm trying to switch windows with Stacked Widget and it works, however, when I use a window that is a different size from the rest, every other window now has to follow the sizing of the biggest window.
Is there any way of changing this? -
@JonB
I have tried resizing manually but it never resizes. Can you give me an example, please? -
@JonB
Do you have any other way to call another widget, because the other methods I have seen, involve turning the pyqt UI into python code.@ametefe said in PYQT5 Stacked Widgets not resizing:
Do you have any other way to call another widget
I do not know what this means.
If you use Designer to produce
.ui
files, you can either run the Pythonuic
to generate Python .py
file code from it or you can useUiLoader
thingie to load the file dynamically at runtime instead of generating code for it. Exacts depend on whether you are PyQt or PySide, the alternatives are documented somewhere in introductory topics for the two Python bindings.I don't see that either of these approaches will have any effect on the runtime behaviour of your widgets/
QStackedWidget
, if that is what you are expecting.