Results 1 to 2 of 2

Thread: QDockWidget::setTitleBarWidget(), is hiding close and float button on the title bar.

  1. #1
    Join Date
    Nov 2008
    Location
    Bangalore, India
    Posts
    21
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows Symbian S60

    Question QDockWidget::setTitleBarWidget(), is hiding close and float button on the title bar.

    I have a QDockWidget, and I have added a QWidget which houses a QProgressBar, as a title bar widget of the dockwidget.
    But when I do this, I am not able to see the default close and float buttons on the titlebar of the dockwidget.

    Any help will be appreciated

  2. #2
    Join Date
    Oct 2015
    Posts
    7
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: QDockWidget::setTitleBarWidget(), is hiding close and float button on the title b

    I realise this was asked ages ago, but in case anyone else is looking for an answer to this.

    This is expected behaviour.

    From the documentation (http://doc.qt.io/qt-4.8/qdockwidget....TitleBarWidget)

    If a title bar widget is set, QDockWidget will not use native window decorations when it is floated.

Similar Threads

  1. Hiding the title of a plot
    By moijhd in forum Qwt
    Replies: 4
    Last Post: 22nd July 2013, 14:12
  2. how to make the QDockWidget float
    By fly542 in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2011, 10:21
  3. Replies: 2
    Last Post: 6th May 2011, 08:02
  4. Replies: 5
    Last Post: 21st April 2008, 07:54
  5. No restore button in QDockWidget title bar
    By trskel in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2007, 09:59

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.