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

populate ComboBox with application (sub)folder files



  • Hi,
    as per title I'm trying to populate a ComboBox using a FolderListModel.
    The code works as expected on Linux but not on Windows

    64e43a5c-61fd-4d74-b1cf-27ce116f6323-image.png

    the appFolder on windows is detected correctly

    d276a1d7-3c13-49e1-bdc0-583a4579545f-image.png

    but in the model, the parent fodler is used:
    b4aed4f7-9819-4efd-b82b-3c7ebedf2157-image.png

    I'm launching the application from within QtCreator

    Any clue?

    cheeers
    Stef



  • changing the prefix from "file://" to "file:///" made the code working on Windows (but of course failing on Linux)


Log in to reply