View Full Version : How to get empty mainwidget at startup

10th March 2006, 22:05
In Qt designer 4.1.1 in windows I get an empty mainwindow when starting a new mainwindow form, but in Linux I get a mainwindw with a menubar, statusbar and a centralwidget (what ever that is).

I wish to start with ONLY a mainwindow. I can remove the menubar by rightclick on it.
How can I remove the other two widgets, the statusbar and centralwidget?

Is there a way of changing qt designer so I can always start with only a empty mainwindow?

10th March 2006, 22:32
You can save your stripped mainwindow as a template to load (File menu -> "Save Form as Template...").

As for stripping the other widgets you can try to edit the ui file manualy, it is xml and fairly readable. Or, if you have the template you want on windows, maybe try to copy that over to your templates folder on linux.

Also, if you are not using the functionality provided by the mainwindow class, perhaps you should use QDialog or even a QWidget as the effective main window for your app.