QtGUI
and QtWidgets
have been separated in Qt5.
How can I add QWidget
or other QWidget
derived controls into QWindow
?
QtGUI
and QtWidgets
have been separated in Qt5.
How can I add QWidget
or other QWidget
derived controls into QWindow
?
A QWindow
is not meant to be used that way. Instead of using a QWindow
directly, you need a QWidget
instead. A parentless QWidget
by default becomes a top-level window.
If you have a particular reason to use a QWindow
, you'll have to edit your question to provide details on your design; most likely your design is incorrect.