Jump to content

ftrack-connect icon not displayed - "QSystemTrayIcon::setVisible: No Icon set"


Remus Avram

Recommended Posts

Posted

When we launch ftrack-connect (not ftrack-connect-package) the icon is not displayed in the Gnome Panel.

After some research, I found out that there are a few bugs regarding Gnome/KDE panels and Qt <5.2. 

'.svg', '.icns', '.ico' are not supported. One format which is supported is '.png'.

 

Posted

Versions of pyside sounds okay. For QT I think we package 4.8.6 at the moment but I'm not aware of any bugs in 4.8.5. 

How are you using ftrack-connect, just checked out repository and running from source? Have you been running "python setup.py develop|install|build"?

Posted

Hi Remus, (Long time no see!).

As suggested by Mattias,

be sure you are building the qt resource files through the python setup.py build command, in this way they should be able to get loaded.
Cheers!

L.

P.s

Here some more tech details:
https://bitbucket.org/ftrack/ftrack-connect/src/a59f367b2ce0c09f21eed66cae75fdd32c89cce8/setup.py?at=master&fileviewer=file-view-default#setup.py-157
When you run build, it also run build_resources compiling and moving the compiled resources into the built folder.

 

Posted

HI Mattias,

2 hours ago, Mattias Lagergren said:

How are you using ftrack-connect, just checked out repository and running from source? Have you been running "python setup.py develop|install|build"?

I checked out the ftrack-connect repository (tag 0.1.28),  build and install all the dependencies and add them to the PYTHONPATH, then build and install the ftrack-connect.

We have a small wrapper which set up the environment, and runs `.../lib/python2.7/site-packages/ftrack_connect-0.1.28-py2.7.egg/ftrack_connect/__main__.py` 

At run time it returns no error, besides "QSystemTrayIcon::setVisible: No Icon set".

 

Hi Lorenzo,

thanks for your hint! 

At the build time, it's also compiling the resources and they are copied to the build folder. Please find attached the ftrack-connect build output.

But if I convert all the images from 'svg' to 'png' from .../resource/image and update the resource.qrc and build the package again, then they are displayed in ftrack-connect.

 

 

ftrack-connect-build-output.txt

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...