Some other odd behaviour with docking windows in 4.7.0 tp as per subject
are:-

1.      They only dock in the pane where they were first added to the
maniwindow
2.      They will not tab dock at all.

 

In general (4.6 as well) I cannot seem to create a tabbed docking window
startup display of the mainwindow. If I make visible other docking
windows that share a docking pane, they appear nested even if I set the
ForceTabbedDocks dock option. Is there something else I need to do?   

 

Regards

David Robinsion

________________________________

From: Robinson, David 
Sent: 04 May 2010 17:28
To: [email protected]
Subject: QDeclarativeView & QGraphicsView inside a QDockWidget

 

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

Reply via email to