Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Correct prefixes for qrc and file ?
Forum Updated to NodeBB v4.3 + New Features

Correct prefixes for qrc and file ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 248 Views 3 Watching
  • 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #1

    What is the correct syntax for qrc and file prefixes?

    I've seen:

    qrc:/
    qrc://
    qrc:///
    file:///
    

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #5

      File is for files on your filesystem. The others are only for accessing the QRC resources.

      (Z(:^

      1 Reply Last reply
      2
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        Whichever works is correct :D

        I've seen:

        There's more:

        :/
        

        qrc:///

        This one's actually the same as qrc:// with / signifying the root prefix of the QRC file.

        (Z(:^

        1 Reply Last reply
        2
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #3

          Simply the sad/confused face: :/.
          See Using Resources in the Application.

          1 Reply Last reply
          3
          • SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by SPlatten
            #4

            Is there a difference between file:/ and qrc:/ or :/ ?

            Kind Regards,
            Sy

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #5

              File is for files on your filesystem. The others are only for accessing the QRC resources.

              (Z(:^

              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