title: How to pass a QVector as an optional argument to a function in c++?
body: <p>Function declaration:  </p>
  
  <pre><code>Q_INVOKABLE void formPackets (unsigned char          argPacketDescriptor,
                                unsigned char          argNoOfBytes,
                                QVector&lt;unsigned char&gt; argBody);
  </code></pre>
  
  <p><strong>Third argument <code>QVector</code> should be optional.</strong>  </p>
  
  <p>I know that one way is to specify a default argument for <code>QVector</code>, but I don't know how to do that with a "QVector" or a "QList". </p>
  
  <p>How to pass a <code>QVector</code> as an optional argument to a function in c++?</p>