Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. What does ":/" mean for a relative path?

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

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 2 Posters 780 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.
  • P Offline
    P Offline
    PaulMax
    wrote on last edited by
    #1

    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.

    aha_1980A 1 Reply Last reply
    0
    • P PaulMax

      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.

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Qt has to stay free or it will die.

      1 Reply Last reply
      2

      • Login

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