Results 1 to 3 of 3

Thread: QDockWidget wierdness

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDockWidget wierdness

    When I call:

    Qt Code:
    1. my_dockwidget->setFloating( true );
    To copy to clipboard, switch view to plain text mode 

    Nothing happens. I can't see the widget in my QMainWindow or floating.

    But if I do this:

    Qt Code:
    1. my_dockwidget->setFloating( false );
    2. my_dockwidget->setFloating( true );
    To copy to clipboard, switch view to plain text mode 
    Then it pops up.

    Is this a bug in Qt?

    In the case where it doesn't pop up, I cout'ed the isVisible() isFloat() parameters and both were true!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QDockWidget wierdness

    How do you dock your widget? Because on default floating is true. So I guess when you dock your widget that property isn't changed.

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

    mhoover (26th February 2010)

  4. #3
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QDockWidget wierdness

    If the property is set to "true" I would think it should be floating and visible.

    I dock it by typing:
    addDockWidget( (Qt:ockWidgetArea)the_widget->dock_area, the_widget->the_dock);

    Where the_widget is a wrapper around a QDockWidget *the_dock.

Similar Threads

  1. QDockWidget-title
    By moowy in forum Qt Programming
    Replies: 18
    Last Post: 23rd April 2014, 20:13
  2. QDockWidget and more
    By Carlsberg in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2009, 09:47
  3. QDockwidget
    By peace_comp in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 05:19
  4. QDockWidget
    By fellobo in forum Qt Programming
    Replies: 8
    Last Post: 26th June 2008, 18:52
  5. QDockWidget
    By ToddAtWSU in forum Qt Programming
    Replies: 6
    Last Post: 29th November 2007, 13:37

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.