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

Add QMetaMethod::fromSlot (&MyClass:myFunction)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: P4: Low 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

      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 ().

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

            Unassigned Unassigned
            thebootroo Thomas Boutroue
            Votes:
            4 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes