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

Q_INVOKABLES with default parameters don't work when accessed from a workerscript thread.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.0
    • None
    • Ubuntu 10.04, desktop.

    Description

      The list model worker agent implementation has the following method:

      Q_INVOKABLE void remove(int index);
      

      If this is changed to:

      Q_INVOKABLE void remove(int index, int count=1);
      

      Then you call the following from a worker script:

      model.remove(0, 10);
      

      The count value is ignored and 1 is always passed through to the C++ method.

      In QDeclarativePropertyCache::property() the declarative engine pointer is null when called from a worker script, and the fall through code that creates the property just looks at the name of the method being called, so it doesn't appear to support overloaded methods.

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            glwatson Glenn Watson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes