Folders/Files in native Folder/FileDialog not selectable
-
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
-
Hi,
That rather sounds like the mouse settings you have. You should check your Plasma configuration panel for that.
-
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?
-
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.