Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. populate ComboBox with application (sub)folder files
Forum Updated to NodeBB v4.3 + New Features

populate ComboBox with application (sub)folder files

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 252 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cooked
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cooked
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved