Hi,
I've placed a QDockWidget to my MainWindow.
Now I want to connect a slot to this DockWidget.
I want to call a sub when the user resizes, moves, docks or undocks the Widget.
Looking forward for your help.
Hi,
I've placed a QDockWidget to my MainWindow.
Now I want to connect a slot to this DockWidget.
I want to call a sub when the user resizes, moves, docks or undocks the Widget.
Looking forward for your help.
The QDockWidget emits QDockWidget::topLevelChanged() when docked or undocked.
The dock widget's QWidget::resizeEvent() should be called when the widget is resized.
Okay, but how can I use the resizeEvent() as a SIGNAL of the QDockWidget?
When I type the connect command, resizeEvent is not existing in the list of available signals.
Qt Code:
connect(ui->dockWidget_Contractor,SIGNAL(topLevelChanged(bool)), this,SLOT(testsub()));To copy to clipboard, switch view to plain text mode
I think I solved the problem with the missing resizeEvent().
I found another thread with the answer.
Here is the link for everyone who has the same problem.
http://lists.trolltech.com/qt-intere...ad00274-0.html
Bookmarks