Search code examples
pythonpyqt

What does the leading colon mean in a string representing path in PyQt


I recently saw the following piece of PyQt GUI code:

QIcon(":/image/images/search.png")

What does the leading colon in the path string mean?


Solution

  • It means that the path is an application resource instead of a full filepath.