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

AttributeError: type object 'PySide6.QtGui.QPalette' has no attribute 'Accent'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.5
    • Other
    • None

    Description

      Pyside 6.5.9

      /Src/examples/gui/analogclock/main.py

      When running:

      /home/qt/RTA/Pyside_6.5.9/.venv/bin/python3 /home/qt/RTA/Pyside_6.5.9/QtForPython/6.5.9/Src/examples/gui/analogclock/main.py

      It gives:

        File "/home/qt/RTA/Pyside_6.5.9/QtForPython/6.5.9/Src/examples/gui/analogclock/main.py", line 91, in <module>
          clock = AnalogClockWindow()
        File "/home/qt/RTA/Pyside_6.5.9/QtForPython/6.5.9/Src/examples/gui/analogclock/main.py", line 35, in __init__
          self._seconds_color = palette.color(QPalette.Accent)
      AttributeError: type object 'PySide6.QtGui.QPalette' has no attribute 'Accent'

      Attachments

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

        Activity

          People

            falt Simo Fält
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes