Closed OlafHaag closed 3 years ago
Thanks for reporting this.
A non-constant comment would be a lie, it is constant. I think the better solution is to find what procedure Qt now actually prefers to use for constant variables. Would you be interested in investigating this? I bet it's not an isolated issue and that other Qt-users around the web has run into it too. The goal is to simply expose this property to QML in a way that leaves it "constant" (i.e. it read-only).
Thanks for the swift reply! It would only be a little white lie, haha! I investigated the issue and it's only related to PySide2 versions 5.15.1 & 5.15.2. The bug was fixed last November, but there hasn't yet been a new release since then. PyQt5 5.15.4 showed no such issue. So there's nothing to do for you here, except for maybe mentioning it in the docs. Close, if you like!
Ah, perfect. The simplest solution is the one already solved. :) The documentation is right here, dated and searchable. Thanks @OlafHaag
The fix has been released in 6.1.2.
@mottosso What would be the best approach to handle this issue with branch 5.15 ? (such as in maya 2022)
This should really only be an issue in the standalone Python you use to run Pyblish QML, because the code running inside of Maya (and Blender too, I would have thought?) doesn't touch QML. So the solution should be the normal expected use of Pyblish QML:
https://github.com/pyblish/pyblish-qml#usage
But now I'm curious, how else would you use Pyblish QML? Are you exposing Maya to QML? Are you using mayapy to launch Pyblish QML? 🤔
Hi! Assume #368 would be solved. Then
pyblish_qml.show()
throws:It's about this line:
When changing it to
@QtCore.Property(bool, constant=False)
, it works fine! Is it feasible for you to change this 1 line as long as it doesn't cause other issues, and make a new release on PyPI? I really want to fully implement pyblish at work. In the meantime I'd have to fall back on pyblish-lite.