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

Unable to auto-connect to `QHeaderView.sortIndicatorChanged` by slot name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.5.3, 6.6.2
    • PySide
    • None

    Description

      QtCore.QMetaObject.connectSlotsByName() is unable to connect slots by name to the QHeaderView.sortIndicatorChanged(int, QtCore.Qt.SortOrder) signal, resulting in the following error:

      qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_verticalHeader_sortIndicatorChanged(int,PyObject)

      The issue does not manifest with other signals in QHeaderView, which may imply the issue is triggered by the use of QtCore.Qt.SortOrder (enum) in the signal.

      Reproduction steps:

      • Launch the attached Python test app (test_app.py).
      • Verify that the "No matching signal" error is produced for on_verticalHeader_sortIndicatorChanged(...), but not for on_verticalHeader_geometriesChanged() or the others.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            christian.aguilera.foundry Christian Aguilera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes