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. What does ":/" at the beginning of a filename passed to a Qt function mean?
Forum Updated to NodeBB v4.3 + New Features

What does ":/" at the beginning of a filename passed to a Qt function mean?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 264 Views 1 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by
    #1

    What does it mean when a Qt function is passed a filename that begins with “:/”? E.g. I’m debugging a program that calls QOpenGLShader::compileSourceFile(QString &filename). My debugging shows that filename is “:/shaders/vertexShadow”; the function returns successfully indicating success. Yet I can’t find a filename containing “*vertexShadow*” in any likely place on my system. Can someone please explain how to interpret the “:/” prefix on that filename?
    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You are looking for the Qt resources system documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Tom assoT 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        You are looking for the Qt resources system documentation.

        Tom assoT Offline
        Tom assoT Offline
        Tom asso
        wrote on last edited by
        #3

        @SGaist - Thanks! Ah, I see. In my case the qrc file specified :

        <file alias="vertexShadow">shaders/shadow.vert</file>
        

        So the Qt function was able to find "shaders/vertexShadow" since it's an alias of the actual file in shaders/shadow.vert.

        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