PDA

View Full Version : QWidgetDock + floatable



gucio1414
25th July 2009, 22:22
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
3499

Sorry for my english:p
Thanks:)

Lykurg
25th July 2009, 23:36
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.

gucio1414
26th July 2009, 00:04
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.