Score:0

Qt5.15 FileDialog not working well in Flatpak

kr flag

I'm using QtQuick 5.15 and I'm implementing a file dialog with FileDialog in my QML file. It works well outside the sandbox, but it is not working in the the sandbox. The file I choose is not passed to my QML routine, but instead it passes the current directory.

I have set the following permits in the Manifest:

 --socket=x11
 --socket=wayland
 --share=ipc
 --device=dri
 --share=network
 --filesystem=host
 --socket=system-bus

What could be the problem?

Daniel Mendizabal avatar
kr flag
I found the problem. I was using property <folder> to get the path for the directory (which works well outside the sandbox), but I changed it to <fileUrl> and it works well inside and outside the sandbox. Maybe it is a bug of the QtDialogs..
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.