Is there are support for Qt dialog?
-
As the title, I didn't found this from api document.And seems module "QtQuick.Controls" version 1.2 is not installed(from log info)
-
@xqqy not sure about 1.2 but QtQuick.Controls 2.2 is available in UT
-
It's
QtQuick.Dialogs
you need to import. I'm not sure ifqml-module-qtquick-dialogs
is seeded though. It might be problematic to use this module, under Unity8, due to how windowing works. -
@dobey But when I using "import QtQuick.Dialogs 1.2" in qml, the page will not load.
Logs are:QQmlComponent: Component is not ready
file:///opt/click.ubuntu.com/appname.yourname/1.0.0/qml/main.qml:61:5: QML StackView: push: file:///opt/click.ubuntu.com/appname.yourname/1.0.0/qml/Page2Form.qml:188 Type Dialog unavailable
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/QtQuick/Dialogs/DefaultDialogWrapper.qml:41 module "QtQuick.Controls" version 1.2 is not installedseems the QtQuick.Dialogs 1.2 not load due to QtQuick.Controls version 1.2 not installed.
-
maybe you need to import a different version of QtQuick Dialogs? perhaps 2.2?
but like dobey said, I would not suggest using that since its more of a desktop app dialog.
You should just use QtQuick.Controls 2.2 -
@xqqy you can see a working example with QQC2 Gallery App, source code here : https://gitlab.com/ubports/apps/qqc2-gallery/blob/master/qml/Main.qml#L293
app here :
https://open-store.io/app/qqc2-gallery.ubad -
@lduboeuf Thanks, I have found the dialog in QtQuick. Thanks to all people helped me.