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. Folders/Files in native Folder/FileDialog not selectable
Forum Updated to NodeBB v4.3 + New Features

Folders/Files in native Folder/FileDialog not selectable

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 719 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.
  • L Offline
    L Offline
    Leon_2001
    wrote on last edited by
    #1

    Hey everyone,

    I have covered some issues with the native FolderDialog and FileDialog from Qt.labs.platform.

    I am using them under Linux with kde plasma 5.12. If I open them and try to select a folder or file (by clicking on it one time) it does not select the folder, but open it in the folderDialog. The same with fileDialog. If I click on a file in the fileDialog it's opened automatically without pressing the open button.

    I need a folderDialog where one click is selecting and two clicks are browsing.
    Can anyone help me? Is this possible?

    By the way, how can I can I get the parent url of an url? So if I have /home/leon/Documents as an url, but just want /home/leon. As the user opens the path through the folderDialog I don't know the url before, so I need a method working on all url not just on this example.

    Greetings

    Leon

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That rather sounds like the mouse settings you have. You should check your Plasma configuration panel for that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon_2001
        wrote on last edited by
        #3

        Yes you are right, this is probably my configuration as it's exactly the same like in Dolphin (File Browser). But the differenc is that Dolphin is made to just browse.
        From a FolderDialog I actually exspect a possibility to select folder. And if possible this should not depend on the user's settings.

        Is this really a feature?

        Anyways, is there a way to achieve my aims without changing my system settings ? Or do I have to implement my own folder dialog?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Is a dialog that follows your system settings behaviour a feature ? Yes, it is. The fact that it is a dialog doesn't change its functionality: browsing your filesystem up to your folder/file of interest.

          AFAIR, you can use the CTRL key to do the selection without activating the element you selected.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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