Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.0.2, 5.1.0 Beta 1
-
Mac OS
Description
It is only reproducible with OS X system with Qt 5 and above environment. It cannot be reproducible on Windows system.
QDockWidget* dock1 = new QDockWidget; dock1->setFeatures(QDockWidget::DockWidgetClosable); dock1->setWindowTitle("Text1"); QTextEdit* text1 = new QTextEdit; text1->append("Text1"); dock1->setWidget(text1); qDebug() << text1->winId(); // <- Reason for problem. Enable and disable this line for testing. addDockWidget(Qt::LeftDockWidgetArea, dock1); QDockWidget* dock2 = new QDockWidget; dock2->setFeatures(QDockWidget::DockWidgetClosable); dock2->setWindowTitle("Text2"); QTextEdit* text2 = new QTextEdit; text2->append("Text2"); dock2->setWidget(text2); addDockWidget(Qt::RightDockWidgetArea, dock2); qDebug() << text2->winId(); // <- Reason for problem. Enable and disable this line for testing.