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

QFileDialog layout incomplete on Linux Mint (19.1 Cinnamon)



  • Hi all,

    I am working on a project that uses the QFileDialog class, in native mode.
    The project uses Qt 5.9.3 right now.

    All is working fine on Windows, Mac, and Ubuntu.
    But on Linux Mint (19.1 Cinnamon) when using that class, the dialog is shown, but without certain layout graphics, like the WRONG-part in following image:

    0_1555670558202_LinuxMintQFileDialog.png

    The CORRECT-part is a screenshot made of the same dialog but shown via the built-in texteditor of Mint.

    This behaviour is also the case if showing this QFileDialog is the only thing that is done within my program.
    I tested it on 2 different Linux Mint computers.
    The program is running via an AppImage. The generated AppImage contains all the necessary Qt libraries. The AppImage is generated using the linuxdeployqt-tool.

    Does anyone have an idea what might be the cause of this incorrectly displayed dialog?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What do you get if you use a build of your app created with the Mint provided version of Qt ?



  • looks like a style problem to me. Have you tried changing the default desktop style on the target machine?



  • @SGaist Thank for the reply. At this moment we build the app on Ubuntu 16. I cannot right away build it on the Mint computers. Maybe can try that later some time. But it should not matter normally I hope, cause otherwise we need to build it for every single Linux distribution.


  • Lifetime Qt Champion

    Indeed, it should not. The idea is rather to check whether it's a Mint issue or a Qt one.


  • Lifetime Qt Champion

    @WJWJ Does it behave like this if you start your app from QtCreator?



  • And as I wrote before...I've seen this exact problem with style/themes that were buggy in Linux. Try changing the default desktop style/theme to verify behaviour.


Log in to reply