Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77816

QShortcut has no PointerToMemberFunction overload for the receiver

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.12.3
    • None
    • a4751f8824723acaee4b9d8aa78a59c2aa36cb3e (qt/qtbase/5.15)

    Description

      There is only one constructor for QShortcut https://doc.qt.io/qt-5/qshortcut.html#QShortcut-1

      The constructor takes a const char* member which is called when the shortcut is activated. This is useful. However, this only works with the old SLOT( member() ) syntax and not with the &ClassName::member syntax, which allows for compile-time checking for non-existing members.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-77816
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              uiohbgq uiohbgq
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes