"Type FileDialog unavailable"
-
I'm having problems using FileDialog component in Main.qml file.
When I use theFileDialog {}anywhere in the QML file and build the project in desktop mode, the terminal returns:qrc:/Main.qml:111:17: Type FileDialog unavailable file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Dialogs/DefaultFileDialog.qml:41:1: module "QtQuick.Controls" version 1.2 is not installed import QtQuick.Controls 1.2 ^and a blank screen is displayed (also on a phone).
It works when built in qtcreator.I'm almost sure I have all the necessary packages installed and imported.
The same libraries are used in sturmreader app document importer file:
https://gitlab.com/TronFortyTwo/sturmreader/-/blob/master/ui/qml/ImporterPortable.qmlMy project is using QML and C++.
I wonder if it means, that some different default version of
QtQuick.Controlsis set somewhere in the clickable or project settings.Thanks for help in advance
-
As far as I know, QQC1 isn't available in UT Only QQC2. Also, file dialog isn't what works in UT. You'll have to use ContentHub
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login