QGradient.stops is not available on Pyside6/PyQt6
-
Hi,
I was able to implement a function that retrieve the intermediate color of a gradient for a given position. I achieved this by getting the gradient stop points positions and return the interpolated colors (Pyside5/PyQt5).
I want to start using pyside6 on my project. However, I noticed that Pyside6 (or PyQt6) does not have QGradient.stops() function implemented.
It is implemented on PySide2 and Qt6
- https://doc.qt.io/qtforpython-5/PySide2/QtGui/QGradient.html#PySide2.QtGui.PySide2.QtGui.QGradient.stops
- https://doc-snapshots.qt.io/qt6-dev/qgradient.html#stops
Does anyone have any idea if this method will be implemented in future pyside releases?
Best Regards
-
Hi,
It's likely a regression, you should check the bug report system to see if there's something already. If not please open a new report providing a minimal script reproducing the issue.
-
Issue reported: https://bugreports.qt.io/browse/PYSIDE-1544
EDIT (13 Apr 2021)
Ticket closed:
https://codereview.qt-project.org/c/pyside/pyside-setup/+/342901
https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=e9bf3bda62590a42377d21ae0e5646f5401f982a -
Thanks !