force-h2020 / force-wfmanager

Workflow manager: UI application for Business Decision System
Other
1 stars 0 forks source link

Attempted migration to qt5: issues on Ubuntu #295

Open nicolasap-dm opened 5 years ago

nicolasap-dm commented 5 years ago

The migration to PyQt5/Qt5 seems almost straightforward after the release of pyface 6.1.1. There is a branch for the upgrade

~(note: stems from/depends on #288): diff. The branch is passing CI (I'll make a PR after #288 is merged).~

Edit: :arrow_right: Branch using qt5: #302

Unfortunately, running this on my Ubuntu 16.04 desktop causes issues, namely the main window is drawn with a window size of 16777215,16777215 (not all in one go: it starts of reasonable size, than immediately explodes). These issues are most likely related to the desktop environment and the GTK-flavored Qt style dictated by it. Indeed, this workaround works:

$ QT_STYLE_OVERRIDE=Fusion edm run -e force-py36 -- force_wfmanager

This blocks the migration of force_wfmanager but is likely an issue with PyQt5.6 (the latest available on edm) rather than with this codebase.

nicolasap-dm commented 5 years ago

Some investigation on simpler pyface applications, with pypi-served pyqt5 5.7.1 vs edm-served pyqt5 5.6. Run on Ubuntu 16.04 (both vanilla, and after having installed libqt5libqgtk2 from canonical):

Open questions

nicolasap-dm commented 4 years ago

Updates: