Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt.labs.platform filedialog



  • Hi,

    The documentation https://doc.qt.io/qt-5/qml-qt-labs-platform-filedialog.html
    says that it is required to have QT_QPA_PLATFORMTHEME to use gtk to
    use the native file dialog.

    I have qputenv("QT_QPA_PLATFORMTHEME", "gtk2");
    before the initialization of the QApplication (also tried gtk/gtk3)
    but nevertheless it says that a native implementation is not available and I should
    include widgets to use the fallback.

    Why is it not available? Does a specific process need to be running?
    Some other variable set?

    EDIT: A little bit too fast on Fedora gtk3 is required and there was a typo


Log in to reply