[PyQt] Missing application resources when run in one Linux distro but not another

David Boddie david at boddie.org.uk
Sun Mar 22 11:37:41 GMT 2020


On Sun Mar 22 02:15:08 GMT 2020, Damon Lynch wrote:

> My program Rapid Photo Downloader looks awful when running under
> Pop!_OS because none of its graphical elements appear, such as menu
> icons etc. It's a usability nightmare because things like the
> hamburger menu are simply invisible.

Would this be the one in images/menu.svg that gets mapped to :/icons/menu.svg
in the raphodo/resources.qrc resources file?

> Pop!_OS is based on Ubuntu. The very same debian package works fine
> under Ubuntu.
> 
> I assume this is something to do with the Qt theme that Pop!_OS
> defaults to. What can I do to override its apparent default behavior?

Is it the theme, or is it a problem with SVG rendering? Do any of the PNG
images in the resources file appear?

> I know it's nothing to do with resources not being installed because
> my app uses the Qt resources system.

It looks like you use your own icons instead of those from the system's theme
so maybe it's not theme-related. You would have to try different themes in
Pop! OS to check whether a more mainstream Qt theme works properly.

David


More information about the PyQt mailing list