https://bugs.documentfoundation.org/show_bug.cgi?id=159311

--- Comment #7 from Michael Weghorn <[email protected]> ---
Another challenge I see now is that it's unclear to me how to add extra
comboboxes or checkboxes to the Qt-based file dialog (QFileDialog) at all
without manually doing so by retrieving the dialog's layout and adding the
widgets there (which is what LibreOffice currently does).

If that's not possible, I think that would mean losing the custom widgets there
completely when switching to the portal-based file dialog for the qt6 and kf6
vcl plugins. (They are currently not used in Flatpak yet, but there is a
request [1] and suggested pull request [2] to enable those as well.)

For GTK, there is `gtk_file_chooser_add_choice` [3], but I currently don't see
any equivalent for Qt.

If that's not possible, that might first need adding corresponding API upstream
in Qt, or alternatively reworking the file dialog logic in LibreOffice to not
contain any extra widgets. The latter would in my opinion be very unfortunate
and result in an even worse user experience (cannot even e.g. use the
"Read-only" checkbox when opening a file without showing an extra dialog after
the actual file dialog,...).

[1] https://github.com/flathub/org.libreoffice.LibreOffice/issues/270
[2]
https://github.com/flathub/org.libreoffice.LibreOffice/pull/395#issuecomment-5976210338
[3] https://docs.gtk.org/gtk3/method.FileChooser.add_choice.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to