title: Invocation from function in QML?
body: <p>I can share an item easily using an InvokeActionItem in a Page but I need to be able to call it in a listview item.  I've managed to trigger an invoke, but I cannot figure out how to add data when triggering it.  I keep getting an error message of </p>
  
  <p>InvocationPrivate::setQuery: you are not allowed to change InvokeQuery object</p>
  
  <p>Note: I am trying to do this in purely QML, I will do it via c++ if necessary but QML would be preferable.</p>
  
  <p>Code that works inside a Page object:</p>
  
  <pre><code>actions: [
      InvokeActionItem {
          ActionBar.placement: ActionBarPlacement.OnBar
          title: "Share"   
          query {
              mimeType: "text/plain"
              invokeActionId: "bb.action.SHARE"
          }
  
          onTriggered: {
              //myTextProperty is a string variable property for the page.
              data = myTextProperty;                
          }
      }
  ]
  </code></pre>
  
  <p>The code I've tried to use in the other item is as follows, but does NOT work:</p>
  
  <pre><code>Container {
  gestureHandlers: [
      TapHandler {
      LongPressHandler {
          onLongPressed: {
              console.log("Longpress");                
  
              invokeQuery.setData("test");
  
              invokeShare.trigger("bb.action.SHARE");
          }            
      }        
  
  ]
  
  attachedObjects: [
      Invocation {
         id: invokeShare
         query: InvokeQuery {
             id:invokeQuery
             mimeType: "text/plain"         
         }   
      }
  ]
  }
  </code></pre>
  
  <p>Is there a way to change the data for an invoke purely with QML or do I need to just run it through c++ instead?</p>