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

QPropertyAnimation requires QByteArray instead of a regular str for its propertyName

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.11.0
    • Documentation, PySide
    • None
    • Linux (Ubuntu 14.04, x64)
      Python 3.6.2, x64
      PySide2 5.11.1 (official release through pip)
    • Linux/X11

    Description

      PySide2.QtCore.QPropertyAnimation requires the propertyName to be a byte type instead of the usual str. Easily fixable, but don't know if it was reported yet (or intended).

       

      So:

      >> QPropertyAnimation(foo, "windowOpacity")

      TypeError: 'PySide2.QtCore.QPropertyAnimation' called with wrong argument types:
        PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject, str)
      Supported signatures:
        PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject = nullptr)
        PySide2.QtCore.QPropertyAnimation(PySide2.QtCore.QObject, PySide2.QtCore.QByteArray, PySide2.QtCore.QObject = nullptr)

       

      But:

      >> QPropertyAnimation(foo, b"windowOpacity")

      Works fine.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            ttphan Tung Phan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes