Results 1 to 2 of 2

Thread: How to get empty mainwidget at startup

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to get empty mainwidget at startup

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get empty mainwidget at startup

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.