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

Base class overloads are not working properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6
    • Fix Version/s: 5.11.1
    • Component/s: Shiboken
    • Labels:
    • Environment:
      I'm bilding latest PySide2 against Qt 5.6.2 on Windows
    • Commits:
      4d858949958e48fdffa136688f1eb82f85439404 (pyside-setup/5.11, 26.6.2018, 5.11.1)

      Description

      Probably after fixing bug PYSIDE-331 the QFileSystemModel is broken in Pyside.
      The index function get wrongly generated overloads decisor.

      // Overloaded function decisor
      // 0: index(QString,int)const
      // 1: index(int,int,QModelIndex)const
      // 2: index(int,int,QModelIndex)const
      

      with overloads 1 and 2 being the same.

      It is then impossible to use QFileSystemModel, because it then throws an error of

      PyErr_SetString(PyExc_NotImplementedError, "pure virtual method 'QAbstractItemModel.index()' not implemented.");
      
      

      I'm attaching QFileSystemModelWrapper.cpp for reference

        Attachments

        1. py570.py
          0.7 kB
        2. pyside570_diag.diff
          5 kB
        3. qfilesystemmodel_wrapper.cpp
          181 kB

          Issue Links

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

            Activity

              People

              • Assignee:
                kleint Friedemann Kleint
                Reporter:
                zwadar Roman Zawada
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes