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. What is the right type for storing filenames with paths
QtWS25 Last Chance

What is the right type for storing filenames with paths

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 336 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by
    #1

    Hi,

    I am developing a qml cross platform application (windows and linux) and wonder what the correct way is to deal with filenames in my c++ backend

    I see that filedialogue in qml, e.g. returns a url which gets converted to a QUrl e.g. in a signal. Should I store the file paths as QString, QUrl or QDir in my backend?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxwell31
      wrote on last edited by
      #2

      Especially file and path names containing spaces should also work

      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