Results 1 to 2 of 2

Thread: How to put QStatusBar object to the top of a QMainWindow instead of to the bottom?

  1. #1
    Join Date
    Jan 2010
    Posts
    4
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Lightbulb How to put QStatusBar object to the top of a QMainWindow instead of to the bottom?

    Hi to all,

    I'm a Qt newbie user,
    and I'm here to ask the way to place a QStatusBar object at the top of a QMainWindow.
    Infact usually the status bar is placed at the bottom.
    I looked for in the list members of QStatusBar class (also in the ihnerited ones) if there is a method to achieve this task, but my searching failed...

    Thanks in advance for your help.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to put QStatusBar object to the top of a QMainWindow instead of to the bottom

    If you do not need QMainWindow, use a standard widget, set a layout and put a statusbar at the top and a central widget beneath it.
    Be sure to also set the size grip to false.

    Beware that you'll break every UI design code ever written

  3. The following user says thank you to tbscope for this useful post:

    scrat75 (17th May 2010)

Similar Threads

  1. QMenuBar hover/click clears QStatusBar in QMainWindow
    By killerwookie99 in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2009, 15:09
  2. Why QStatusBar do not at the bottom?
    By FinderCheng in forum Qt Programming
    Replies: 5
    Last Post: 29th September 2009, 08:26
  3. QStatusBar
    By newermind in forum Qt Programming
    Replies: 3
    Last Post: 1st June 2009, 21:48
  4. Open a QMainWindow Object in QDialog Object
    By chuengchuenghq in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2008, 06:33
  5. Replies: 7
    Last Post: 15th November 2007, 17:19

Tags for this Thread

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.