When a Docking window contains a Qml Declarative (or Graphics) view and
it is dragged off the docking area, the state within
QDockWidgetPrivate::startDrag() at line 718 of qdockwidget.cpp is nulled
after the layout is unplugged in QMainWindowLayout::unplug(QWidget
*widget) at line 1798 of qmainwindowlayout.cpp.
This line calls the widgets own unplug method and
QDockWidgetPrivate::setWindowState at line 999. During this method the
docking window is hidden if it is visible at line 1021 and at this point
the previous state is nulled. This then causes an exception during the
assignment that follows the unplug at line 718.
Is this a know issue?
All I do to embed the Qml in a docking window is: -
m_scene = new QGraphicsScene;
m_scene->setSceneRect(0, 0, 400, 70);
declarativeView->setScene(m_scene);
m_engine = new QDeclarativeEngine;
m_component = new QDeclarativeComponent(m_engine);
connect(m_component,
SIGNAL(statusChanged(QDeclarativeComponent::Status)),
SLOT(statusComponent(QDeclarativeComponent::Status)));
m_component->loadUrl(QUrl::fromLocalFile("C:/samegame/SameGame.qml"));
Regards
David Robinsion
Please refer to www.anite.com for individual Anite company details. The
contents of this e-mail and any attachments are for the intended recipient
only. If you are not the intended recipient, you are not authorised to and must
not disclose, copy, distribute, or retain this message or any part of it. It
may contain information which is confidential and/or covered by legal
professional or other privilege. Contracts cannot be concluded with us nor
legal service effected by email.
Anite plc
Registered in England No.1798114
Registered Office: 353 Buckingham Avenue Slough Berks SL1 4PF United Kingdom
VAT Registration No. GB 787 418187
Scanned for viruses by Mimecast._______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback