What does ":/" mean for a relative path?

  • I am working over the Mastering QT-5 book by Gillaume Lazar and in the mobile chapter where it is talked about databases it is told that you should take an already created database and copy it to your project

    The file is taken from the following path:

    QFile assetDbFile(":/database/" + DATABASE_FILENAME);

    What I don't understand is what the :/ means

    Hope anyone can help me. Thnx.

  • Qt Champions 2018

    Hi @PaulMax

    this is simply the path to a file which is embedded in the programs resource.

    This this database file is contained in the final executable file.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.