Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QGradient.stops is not available on Pyside6/PyQt6
Forum Updated to NodeBB v4.3 + New Features

QGradient.stops is not available on Pyside6/PyQt6

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 2 Posters 541 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ndiasN Offline
    ndiasN Offline
    ndias
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ndiasN Offline
        ndiasN Offline
        ndias
        wrote on last edited by ndias
        #3

        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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Thanks !

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved