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

Add QMetaMethod::fromSlot (&MyClass:myFunction)

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.0.0, 5.0.1, 5.0.2, 5.1.0 , 5.1.1, 5.2.0, 5.2.1
    • Core: Object Model
    • None
    • Linux Ubuntu 13.04 32 bit,
      GCC 4.7.3 32 bit,
      Qt 5.2.1 32 bit,
      QtCreator 3.0.1 32 bit

    Description

      In QMetaMethod we have a fromSignal () helper since 5.0.

      That's really nice and usefull.

      But it still misses the equivalent for slots/invokable methods.

      For now, to find the QMetaMethod of a know member we have to loop on all methods and compare signature.

      Not really clean and / or efficient.

      As fromSignal () is already implemented, and signal and slots are really similar from QMetaMethod point of view, it shouldn't be too hard to implement fromSlot ().

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            thebootroo Thomas Boutroue
            Votes:
            3 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes