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

[PySide2] indexOfTopLevelItem not a member of PySide2.QtWidgets.QTreeWidget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 1.2.2, dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
      None
    • Commits:
      c72a33bbf1f4ed245fd32f9261a52abf781733bc

      Description

      Hi,

      Within a PySide2 environment, we couldn't access an already existing method indexOfTopLevelItem under QTreeWidget. A simple python snippet:

      from PySide2 import QtGui
      a = QtGui.QApplication( [] )
      w = QtGui.QTreeWidget()
      w.indexOfTopLevelItem
      

      throws

      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      AttributeError: 'PySide2.QtWidgets.QTreeWidget' object has no attribute 'indexOfTopLevelItem'
      

      Is this something that has been missed during migration or should we be using some other new method we are not aware of?

      Skimming through the project tree noticed in the xml wrapper that the non-const method has been marked as internal and the const method has been marked as "remove=all". Not sure what these mean though.

      The version of PySide2 is from Autodesk's Maya 2017. If I do PySide2._version_ I get '2.0.0~alpha0'

      Any insight will be helpful.

      Thanks,
      Sundar

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              sundark Sundar Krishnamurthy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes