View Full Version : A child widget turns up as a new window

19th July 2008, 23:39
I create a QWidget subclass and supply a group box in my main window as a parent to it in the creation. Still, it turns up as a free window next to my main window.
Am I doing a common mistake that any of you have done before?
Any suggestions what I should look for?


20th July 2008, 01:56
From what you describe I would make a layout, add the widget subclass to the layout, then set the layout to the groupbox. I believe that's the preferred way of putting widgets inside a groupbox. Haven't really used them that much.