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

Problem when calling C++ slots with default parameters from QML

    XMLWordPrintable

Details

    Description

      Hi,

      Broken call chain when invoking C++ slots with default parameters from QML. Please find attached a qt creator project with a small example illustrating the problem. I define a C++ class with a single slot and I expose it to QML through the declarative context. Please notice how the parameter is not properly passed to the slot when default values are defined. The default parameter overwrites any passed value by the user.

      Kind Regards,

      Diego.

      Attachments

        1. qmlSlotsBug.tar.gz
          6 kB
          Diego Marcos Segura

        Issue Links

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

          Activity

            People

              aakenned Aaron Kennedy
              dmarcos Diego Marcos Segura
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes