Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Best way to create a QML Dialog with QQuickView, to be run before main QML window

$
0
0
OK, so what I am doing is I have a QQuickView set to a ‘main.qml’ file, which is my main app window, then I have QGuiApplication, now I’ve come to realize that as soon as QGuiApplication::exec() is called my main.qml file is run along with all it’s javascript, even if I don’t call QQuickView::show(), what I need is the best way to create a QML dialog that will show before my main.qml, and before any of it’s javascript is executed, I was thinking of having another QGuiApplication just for my dialog, which would then force everything else to wait until it’s destroyed, but that doesn’t seem like a very elegant way of handling this. What’s the best way of creating a “pre-run” dialog in QML with Qt Quick??? This is going to be a “first run” dialog, to set up app configurations when the app is run for the first time. Please let me know if my question doesn’t make sense and I’ll try to clarify.

Viewing all articles
Browse latest Browse all 4972

Trending Articles