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

Add an overload to the QMessageBox.open() method that accepts a slot

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P4: Low
    • 6.8.0
    • None
    • PySide, Shiboken
    • None
    • 058444c9d (dev)

    Description

      The open() method of QMessageBox should accept a slot. This would avoid having to use the SLOT() function and convert the slot method into a C++ method string. This would also make it more in-line with the Signal.connect(Slot) style of connecting signals and slots. Furthermore, PyQt already uses this method style so adding this would improve the compatibility between the two libraries.

      Attachments

        1. pyside2805_pyqt.py
          0.5 kB
        2. pyside2805.py
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            jirauser71538 user-3e62a (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes