Remus Avram Posted September 22, 2016 Report Posted September 22, 2016 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'.
Mattias Lagergren Posted September 23, 2016 Report Posted September 23, 2016 13 hours ago, Remus Avram said: When we launch ftrack-connect (not ftrack-connect-package) the icon is not displayed in the Gnome Panel. Are you able to run ftrack-connect-package just to test, does it display then?
Remus Avram Posted September 23, 2016 Author Report Posted September 23, 2016 Yes, the icon is displayed we I run ftrack-connect-package.
Remus Avram Posted September 26, 2016 Author Report Posted September 26, 2016 Unfortunately, all the ftrack-connect icons are not displayed. We are currently using: pyside v1.2.2 qt v4.8.5 Is it required a specific version of qt/pyside for ftrack-connect?
Mattias Lagergren Posted September 27, 2016 Report Posted September 27, 2016 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"?
lorenzo.angeli Posted September 27, 2016 Report Posted September 27, 2016 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.
Remus Avram Posted September 27, 2016 Author Report Posted September 27, 2016 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
Remus Avram Posted October 6, 2016 Author Report Posted October 6, 2016 I found the issue. Recompiling qt with svg support fix the problem.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.