Results 1 to 2 of 2

Thread: QMainWindow without central wiidget, is it bad ?

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Exclamation QMainWindow without central wiidget, is it bad ?

    Hi,
    I changed the QMainWindow to not have a central widget and to use "setDockNestingEnabled( true )" to have full control of the docks.
    Is it bad to not have a central widget ? I don't see any problem but I prefer ask to know if internally it's bad.
    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QMainWindow without central wiidget, is it bad ?

    I doubt there is a problem despite this being a very uncommon setup.
    But if you don't want to risk it, why not simply set an empty widget?

    Cheers,
    _

Similar Threads

  1. How can size of QMainWindow's central widget be managed?
    By yogeshm02 in forum Qt Programming
    Replies: 9
    Last Post: 28th March 2014, 21:12
  2. Replies: 2
    Last Post: 29th June 2011, 15:45
  3. QMainWindow central widget minimum size
    By dima in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2010, 07:24
  4. paint central widget of a QMainWindow???
    By Shuchi Agrawal in forum Newbie
    Replies: 3
    Last Post: 17th January 2007, 08:02
  5. Central Widget of QMainWindow
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2006, 18:32

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.