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

Details

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

    Description

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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes