I have recently switched to designing my GUIs and all code in a text editor since I prefer writing in VIM and I often prefer working without X.

I'll try and keep this short and bulletpoint like.

I have hit one snag though that I cannot find any documentation on (Please correct me if I am wrong).

I have a QWT plot (this is not QWT specific, so I am posting here) that I want to include in my QVBoxLayout as part of the MainWindow.

The issue is that when I add the VBoxLayout to a QWidget window and then do window->show() the VBox appears as a new window.

I have set the background of the application to the Dark palette and the original window has the affected background colour but the Plot and anything in the VBox appears as a new window.

How do I get the QVBoxLayout to appear as part of the main window?


Thank you!

-Gavin