If QWidget is created without a parent, it creates a window.
So, when exactly is the window created? Is it when the show()
is called? Or when the object is constructed?
If QWidget is created without a parent, it creates a window.
So, when exactly is the window created? Is it when the show()
is called? Or when the object is constructed?
Window is created when the show()
method is called. If you set widget's parent before showing a widget, no window is created.