Results 1 to 18 of 18

Thread: QDockWidgets without central widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    7
    Thanked 25 Times in 24 Posts

    Default Re: QDockWidgets without central widget

    you addDockwidget in following sequence:
    top, left, right then bottom.
    you will not get resizing problem while moving seperator left/right.

    Qt Code:
    1. my code snip:
    2. QMainWindow::setCorner(Qt::TopLeftCorner, Qt::LeftDockWidgetArea);
    3. QMainWindow::setCorner(Qt::TopRightCorner, Qt::TopDockWidgetArea);
    4. addDockWidget(Qt::TopDockWidgetArea,m_pPinLayoutDockWidget);
    5. addDockWidget(Qt::LeftDockWidgetArea, m_pWorkspaceDockWidget );
    6. addDockWidget(Qt::BottomDockWidgetArea,m_pStatusWndDockWidget );
    7.  
    8. and put :
    9. QLabel *center = new QLabel("");
    10. center->setFixedSize(0,0);
    11. setCentralWidget(center);
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to rajesh for this useful post:

    JoeMerchant (8th August 2007)

Similar Threads

  1. Replacing Central Widget in Designer
    By Max Yaffe in forum Qt Tools
    Replies: 2
    Last Post: 11th July 2007, 11:41
  2. paint central widget of a QMainWindow???
    By Shuchi Agrawal in forum Newbie
    Replies: 3
    Last Post: 17th January 2007, 08:02
  3. Pin/Unpin Dock Widget
    By charlesD in forum Newbie
    Replies: 1
    Last Post: 21st June 2006, 06:57
  4. Central Widget of QMainWindow
    By sumsin in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2006, 18:32
  5. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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
  •  
Qt is a trademark of The Qt Company.