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

Methods in derived Q_GADGETs not invokable from QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1, 6.0
    • 5.9.1
    • Linux with Desktop Qt 5.9.1 and GCC 4.8.4 64bit. Could be reproduced with other configuration in Linux, too.
    • 1029b2b9f3d0ff88c0900fbfec2fac873aa6bcd4 1e03675dd95129702751b40ec80a999ffab7394e

    Description

      Only the third of multiple Q_INVOKABLE methods of a Q_GADGET class that is itself derived from another Q_GADGET class is invokable from within QML. In all other cases the following error is written to the console:

      TypeError: Property 'methodX' of object Gadget() is not a function

      I'll attach a small example to demonstrate this.

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            jmatokic Johannes Matokic
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes