check for scene sxistence
This commit is contained in:
parent
e4eeac663d
commit
42ddc80867
@ -92,7 +92,7 @@ void ToolTipProxy::syncTarget()
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_declarativeItemContainer) {
|
||||
if (!m_declarativeItemContainer && scene) {
|
||||
m_declarativeItemContainer = QWeakPointer<DeclarativeItemContainer>(new DeclarativeItemContainer());
|
||||
m_declarativeItemContainer.data()->setObjectName("DIContainer");
|
||||
scene->addItem(m_declarativeItemContainer.data());
|
||||
|
Loading…
Reference in New Issue
Block a user