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

Crash when calling a slot of an "empty" Q_GADGET object

    XMLWordPrintable

Details

    • All

    Description

      If there is a Q_GADGET object that doesn't have any properties, calling a slot method in QML will encounters an access violation exception, e.g.

      class Gadget {
          Q_GADGET
      
      public slots:
      
          void foobar() const;
      };
      

      The attachment contains a minimum reproduce example.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes