Qt World Summit: Register Today!

What is the right type for storing filenames with paths

  • 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?

  • Especially file and path names containing spaces should also work

Log in to reply