10 #include <QDockWidget> 11 #include <QGridLayout> 20 QObject *w0 = d->parent();
22 throw runtime_error(
"1st parent of QDockWidget is NULL");
24 QObject *w1 = w0->parent();
26 throw runtime_error(
"2nd parent of QDockWidget is NULL");
28 QObject *w2 = w1->parent();
30 throw runtime_error(
"3rd parent of QDockWidget is NULL");
34 throw runtime_error(
"3rd parent of QDockWidget is not a QTabWidget");
36 setGeometry(d->geometry());
47 QWidget *w =
new QWidget;
49 QGridLayout *l =
new QGridLayout(w);
QDockWidget * fDockWidget
void closeEvent(QCloseEvent *)
DockWindow(QDockWidget *d, const QString &name)