You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My QtQuick application contains more than one qmlengines, But I found that the Config is a singleton, It can not be loaded in other qmlengine if it has already has one.
Any ideas? Thank you!
The text was updated successfully, but these errors were encountered:
Hi iamsergio,
Thank you for your reply!
In my app, there may be more than one qmlengines , each engine contains a Window.
Currently we only allow one window is visible, and we will delete the previous window when new window is created. so we don't have requirement to dock a dockwidget from one Window to another Window.
I tried to modify the source code , just remove the code below in function void Config::setQmlEngine(QQmlEngine *qmlEngine). Is that OK ? if (d->m_qmlEngine) { qWarning() << Q_FUNC_INFO << "Already has QML engine"; return; }
My QtQuick application contains more than one qmlengines, But I found that the Config is a singleton, It can not be loaded in other qmlengine if it has already has one.
Any ideas? Thank you!
The text was updated successfully, but these errors were encountered: