Results 1 to 2 of 2

Thread: Problem with QDocWidged hiding and showing with a controll button.

  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with QDocWidged hiding and showing with a controll button.

    Hi All...

    Im using a QDockWidget in Main Window, my requirement is to hide the dockwidget, im trying set the flags for QDockWidget, but there is no specific flag for hiding .

    Is there any specific way where in i can provide a Down arrow button.
    Widget has to hide on clicking on it and Button must change its arrow direction upwards.
    Clicking on Up arrow it should come back to maximized state.

    Thanks in advance,
    Kiran Pechetti

  2. #2
    Join Date
    Jul 2011
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with QDocWidged hiding and showing with a controll button.

    dockwidget->show()
    dockwidget->hide()

    I would probably look at this function: void QDockWidget::setTitleBarWidget ( QWidget * widget )

Similar Threads

  1. Line Edit Controll problem
    By mansoorulhaq in forum Qt Programming
    Replies: 5
    Last Post: 31st October 2007, 08:33
  2. why isnt my button showing?
    By IsleWitch in forum Newbie
    Replies: 4
    Last Post: 7th October 2007, 18:28
  3. Showing and hiding menubar
    By borges in forum Newbie
    Replies: 1
    Last Post: 23rd September 2007, 10:56
  4. showing close Button(x) in QDialog
    By vishal.chauhan in forum Newbie
    Replies: 6
    Last Post: 4th April 2007, 10:01
  5. Performance in hiding/showing widgets
    By Paalrammer in forum Newbie
    Replies: 12
    Last Post: 14th February 2007, 18:57

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.