title: Convert QString to Pointer of QString
body: <p>As i am no C(++) expert i am stumped by some stubbornness of the compiler not wanting to convert a, in this case, QString to a QString*.
  I have a function:</p>
  
  <pre><code>bool getNextMessage(int sId, QString *msg, QString *cmd)
  </code></pre>
  
  <p>I am using pointers here because i can not return more than one variable (spoiled Perl coder ;) ) in C and i want to use this in a while(getNextMessage(...)){...} style loop.
  Inside that function there is some SQL foo and this:</p>
  
  <pre><code> msg = QString("");
   cmd = QString("");
   return false;
  </code></pre>
  
  <p>All that the compiler produces from this is this:</p>
  
  <pre><code> cannot convert 'QString' to 'QString*' in assignment
  </code></pre>
  
  <p>Could you dear folks please lift the mystery for me? Thanks. :) </p>
  
  <p>EDIT:
  Solution: Using references now thanks to the pointer to them from leemes.</p>