Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Cannot set folder in FileDialog from QtQuick.Dialogs 1.0
Forum Updated to NodeBB v4.3 + New Features

Cannot set folder in FileDialog from QtQuick.Dialogs 1.0

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml filedialogfolderqtquick.dialogs
1 Posts 1 Posters 197 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    gaess
    wrote on last edited by
    #1

    I don't know if it's a bug or if I'm doing anything wrong.
    No matter what value I assign the folder property to, the fileDialog always shows the application source folder.
    I've tried different values: "file:///home", "file:///home/", "~", shortcuts.home, Qt.resolvedUrl("/home")
    None of them had any effect. I'm on Debian 10.3, Qt 5.14.0
    Here's my code:

    import QtQuick 2.2
    import QtQuick.Dialogs 1.0
    FileDialog {
        id: openFileDialog
        title: "test"
        folder: "file:///home"
    }
    

    Is this working for you? Do I need to change anything?.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved