PDA

View Full Version : dockwidget problem



rimie23
6th May 2012, 10:26
Hi
in my program i have many dockwidget
i want when i run my program i see the dockwidget automaticly out the centralwidget (or out the mainwidget)
can i do that?

wysota
6th May 2012, 16:35
QDockWidget::setFloating()

rimie23
7th May 2012, 22:26
I try it like that


dockWidget_2 = new QDockWidget(this);
dockWidget_2->setObjectName(QString::fromUtf8("dockWidget_2"));
dockWidget_2->setGeometry(QRect(0, 0, 211, 361));
dockWidget_2->setMinimumSize(QSize(183, 327));
dockWidget_2->setWidget(dockWidgetContents_5);
dockWidget_2->raise();
dockWidget_2->setWindowTitle(QApplication::translate("MainWindow", "Tools", 0, QApplication::UnicodeUTF8));
dockWidget_2->setFloating(false);


but i still see it in the mainwindows when i run the application(the problem that it hide to me some objects in my scene)

wysota
7th May 2012, 23:46
I'm not suprised, since you pass false to setFloating...

rimie23
8th May 2012, 09:03
but if i make like that

dockWidget_2->setFloating(true);
when i run i see the dockWidget_2 before i see the mainwindows (i want to see them in parallel)
another problem is that isee the dockWidget_2- without the button ,groupebox....., i see is empty