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

Add a compile time check for all methods to be invokable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • Remote Objects
    • None

    Description

      When exposing a manually written class using the autogenerated *SourceAPI template class a check for all methods of the rep file is done.

      This check is not enough and needs to be extended to also make sure the methods are invokable using Q_SLOT oder Q_INVOKABLE. Otherwise the map contains a -1 as methodIndex.

      Trying to call this results in wrong error message which is not very helpful:

      Invalid method invoke packet received. Index = 32 which is out of bounds for type "<class>"

      Attachments

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

        Activity

          People

            bstottle Brett Stottlemyer
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes