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

Generate python module with add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 5.15.1
    • Shiboken
    • None

    Description

      Hi,

      When I try to generate module against an lib with use add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000), it will failed as it wants to use QDirModel which is not excluded in generated pyside2_qtwidgets_python.h

      It will good to exclude it when we generated it with deprecated method

       

      /usr/include/PySide2/QtWidgets/pyside2_qtwidgets_python.h:800:44: erreur: « ::QDirModel » n'a pas été déclaré; vouliez-vous employer « QListModel » ?
      800 | template<> inline PyTypeObject *SbkType< ::QDirModel::Roles >() { return SbkPySide2_QtWidgetsTypes[SBK_QDIRMODEL_ROLES_IDX]; }

      ^~~~~~~~~
      QListModel
      /usr/include/PySide2/QtWidgets/pyside2_qtwidgets_python.h:800:44: erreur: « ::QDirModel » n'a pas été déclaré; vouliez-vous employer « QListModel » ?
      800
      template<> inline PyTypeObject *SbkType< ::QDirModel::Roles >() { return SbkPySide2_QtWidgetsTypes[SBK_QDIRMODEL_ROLES_IDX]; }
      ^~~~~~~~~
      QListModel
      /usr/include/PySide2/QtWidgets/pyside2_qtwidgets_python.h:800:33: erreur: erreur d'analyse dans la liste des arguments du patron
      800
      template<> inline PyTypeObject *SbkType< ::QDirModel::Roles >() { return SbkPySide2_QtWidgetsTypes[SBK_QDIRMODEL_ROLES_IDX]; }

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            montel Montel Laurent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes