-
Bug
-
Resolution: Done
-
P2: Important
-
4.5.0
-
None
-
c520a4c75d16948417f6c1a3f42508510be0b5f4 90a362519e119ee93dc5cabeb318b4d16da94e82 30c0f2ea782239eb5165cc3f12cabc3da5b9eae0
Consider the following:
QLabel *label = new QLabel("foobar");
QGraphicsScene *scene = new QGraphicsScene;
scene->addWidget(label, Qt::Window);
The expected result is that the embedded label is shown with a window frame.
The actual result is that the embedded label is shown without a window frame.
QGraphicsScene::addWidget() calls setWidget() on the graphics proxy widget, which overrides any window flags passed to addWidget().
Workaround: set the window flags on the graphics proxy widget after it has been constructed.