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

Q_INVOKABLE is not working with trailing return types, QTBUG-93952 is still unresolved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5.0
    • Build tools: moc
    • None
    • LINUX openSUSE Leap 15.4
    • Linux/X11

      Q_INVOKABLE is not working with trailing return types,  the generated code does not compile. The bug is reproducable with attached 'app.zip'. The furthermore attached 'moc.cpp' (based on Qt 6.5.0) provides a possible fix (search for 'MOC_TRAILING' (the 'else' branch works with my test cases).

        1. app.zip
          0.8 kB
          Winfried Schenke
        2. moc.cpp
          70 kB
          Winfried Schenke
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            fabiankosmale Fabian Kosmale
            wschenke Winfried Schenke
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes