Results 1 to 3 of 3

Thread: QWidgetDock + floatable

  1. #1
    Join Date
    Mar 2009
    Posts
    2
    Platforms
    Unix/X11

    Default QWidgetDock + floatable

    Hey!
    How can I catch action when I click on floatable button in QDockWidget?

    For example:
    How catch (change) action when I click mark button on picture below
    1.jpeg

    Sorry for my english
    Thanks

  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: QWidgetDock + floatable

    The documentation is your friend. Use them:
    void QDockWidget::topLevelChanged ( bool topLevel ) [signal]

    This signal is emitted when the floating property changes. The topLevel parameter is true if the dock widget is now floating; otherwise it is false.

  3. #3
    Join Date
    Mar 2009
    Posts
    2
    Platforms
    Unix/X11

    Default Re: QWidgetDock + floatable

    I know this signal, but I want use this button for my action,and I dont know how. what I must to do? Maybe I must override function, but which?
    Thanks.
    Last edited by gucio1414; 25th July 2009 at 23:48.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.