UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    "Type FileDialog unavailable"

    Scheduled Pinned Locked Moved App Development
    2 Posts 2 Posters 410 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • U Offline
        utuser
        last edited by utuser

        I'm having problems using FileDialog component in Main.qml file.
        When I use the FileDialog {} 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.qml

        My 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

        1 Reply Last reply Reply Quote 0
        • K Offline
          kugiigi
          last edited by

          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

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post