Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1679

QAbstractLight's methods no longer work in PySide6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.x
    • PySide
    • None
    • Windows

    Description

      In PySide2 QAbstractLight's methods: setIntensity() and setColor() were working correctly, but for some reason, in PySide6 these methods are not changing underlying shader. No error messages are shown when these methods are used and these attributes are actually retrievable with intensity() and color() methods but these changes have no impact on the rendered result. For some reason these attributes are not passed to the shader. 

      Minimal working example . If You try this example and change color from "white" to "red" it will work, but if You change imports from PySide2 to PySide6 and leave all the code intact color will still remain "white". Method setColor("red") is ignored. Same with intensity. It is also ignored

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            rayterex Nemanja Stojanovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes