Portal support in Qt and KDE¶
Qt and KDE libraries will transparently use portals for some functionality when they detect that they are being used inside a Flatpak sandbox. Here are some hints for what Qt or KDE applications should do to benefit from this.
QDesktopServices::openUrl(const QUrl &url)or
KIO::KRunto open URIs or send an email when using
QFileDialogclass to open files. Avoid using
QFileDialog::DontUseNativeDialog. Note that portals cannot currently give access to directories on the host filesystem
KNotification::notify()to show notification