"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.Controls
is 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