-
Notifications
You must be signed in to change notification settings - Fork 128
Conversation
Task linked: OP-4634 Use qtpy in tools |
Error between chair and keyboard. |
In Harmony Manager it doesn't show version when the version is changed.
|
In Scene Inventory, Switch Asset still doesn't work:
|
In Harmony Scene Inventory there is also an issue with
|
Fixed
This is issue of the harmony loader (I can't do much about it). |
with manager.counter( | ||
color='green', | ||
total=content_len and math.ceil(content_len / 2 ** 20), | ||
unit='MiB', leave=False) as counter: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line with same indent as next logical line
Brief description
Update PySide2 to PySide6 for MacOs and change all remaining imports of
Qt.py
module toqtpy
. This change is needed for new MacOs distribution.Description
PR is combining change of Qt.py import with
qtpy
so all changes in this PR are affecting all hosts and it doesn't make sense to have it separated into multiple small PRs as most of them are connected to each other. Imports were changed in tools, utils widgets, launch script of non-python hosts, some vendor modules (qargparse
andscriptsmenu
) and global loader plugins. AddedQtPy
module to Python 2 vendor in latest available version that supportPySide
andPyQt4
.PySide6 changed few things here and there. E.g. how it is accessed to class methods (objects don't have access to class attributes) or renamed few methods. Some constants were removed and few classes were removed completelly.
We must make sure that all Qt tools in igniter are 100% right. Other possible bugs can be fixed later. Report any issue you will hit (make sure the issue was not already reported).
Checkstate constants are not integers anymore so output of
CheckStateRole
orstateChanged
of checkbox can't be compared toChecked
,Unchecked
andPartiallyChecked
without convertion to enum values first (big issue for backwards compatibility).Issue with
qtpy
is that it always setos.environ["QT_API"]
to best matching value. That causes issue if the value is set to"pyside6"
because in that case older versions are not set. Currently was fixed for applications launch but it can cause more issues in future.TODOs
Known issues
Testing notes:
All tools running in OpenPype process are potentially broken now and in most of cases the broken part is not recognized until someone hit exactly specific usecase. Because of
QtPy
module update and using it instead ofQt.py
functionality in hosts should be checked too. The main focus is on tools running in OpenPype processes on MacOS.It is required to install proper python and on MacOS also run
fetch_thirdpart_libraries
to installPySide6
.Any possible UI tool executed from OpenPype tray
This consist of all tools from modules and in base of openpype.
Loader actions
Hosts
In each host must be tested all of these (if the functionality is available there).
Workfiles tool
Loader tool
Creator
Publisher
Publish Pype (pyblish-lite based)
Subset manager
Scriptsmenu
Hosts
Write a comment if I forgot about some cases.