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

QObject.findChild() unknown type signature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.11.0
    • PySide
    • None
    • Python 3.6 64Bit
    • Windows

    Description

      So https://doc.qt.io/qtforpython/PySide2/QtCore/QObject.html#PySide2.QtCore.PySide2.QtCore.QObject.findChild

      expects PySide2.QtCore.QObject.findChild(PyTypeObject, unicode = QString())

      I have no idea how to supply a PyTypeObject - or a QString for that matter as it isn't in QtCore.

      The same applies to some similar functions like findChildren.

       

      Traceback (most recent call last):
      File "./UI/src/testqml.py", line 14, in <module>
      print(view.rootObject().findChild("password"))
      TypeError: 'PySide2.QtCore.QObject.findChild' called with wrong argument types:
      PySide2.QtCore.QObject.findChild(str)
      Supported signatures:
      PySide2.QtCore.QObject.findChild(PyTypeObject, unicode = QString())
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes