Results 1 to 2 of 2

Thread: Same Width of Qt's Bottom Drawer and its parent QMainWindow

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Same Width of Qt's Bottom Drawer and its parent QMainWindow

    Hi

    I am using Qt 4.6.4 on MacOSX.

    QDockWidget *m_pDockWidget = new QDockWidget(this,Qt:rawer);
    MyWdgt *m_pMyWdgt = new MyWdgt(this);

    m_pDockWidget->setFixedWidth(750);
    m_pDockWidget->setFixedHeight(220);

    m_pDockWidget->setWidget(m_pMyWdgt);
    this->addDockWidget(Qt::BottomDockWidgetArea,m_pDockWid get);

    It Start showing Drawer After Bottom of QMainWindow. But Drawer's width is not same as QMainWindow's width.

    I want to set Same Width as QMainWindow. But it always some width less than QMainWindow.

    I have attached sample Screen. Kindly tell me the solution for this.

    Thanks
    Santosh
    Attached Images Attached Images

Similar Threads

  1. Replies: 1
    Last Post: 12th June 2014, 06:40
  2. Replies: 1
    Last Post: 25th May 2010, 14:44
  3. Replies: 1
    Last Post: 17th May 2010, 10:40
  4. Replies: 1
    Last Post: 18th February 2009, 08:34
  5. how to show Dialog as drawer on the bottom of the parent screen?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2008, 08:00

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.