How to reference resource file in PyQt stylesheet using fbs
问题 I am building a PyQt5 application using fbs and (following this tutorial) have placed the image files in the directory /src/main/resources/base/images . This way the image resources are available to the Python code using ApplicationContext.get_resource("images/xxxx.png") . The build system manages the correct file path depending on whether we are running from source or the compiled version of the app. I would like to access these images in my PyQt stylesheets, along the lines of QTreeView: