title: QGraphicsItem setShear ? (applicable for single or multiple items)
body: <p>To apply rotation on a QGraphicsItem, I can either call <code>rotate()</code> or <code>setRotation()</code>. What I see happening:</p>
  
  <pre><code>item.rotate(angle);
  </code></pre>
  
  <p>results in rotation, as I expect; yet if I copy the item (using a cop constructor in a subclass), no rotation will be copied (even if I copy all transformations).</p>
  
  <pre><code>item.setRotation(angle);
  </code></pre>
  
  <p>results in the item having a <code>rotation()</code> property which I can copy - but requires an update. </p>
  
  <p>So the second version is what I need.</p>
  
  <p>I would like to be able to apply shear to my items as well.</p>
  
  <pre><code>item.shear(shx, shy);
  </code></pre>
  
  <p>looks good on initial item - but I cannot find a way to copy this shear. Nor can I find a similar property as for rotation: there is no <code>setShear()</code> that I can find.</p>
  
  <p>Even more, if I try to play with transformations, to achieve a group shear (like this <a href="https://stackoverflow.com/a/30673574/1217150">question's</a> rotation), I get very weird results...</p>
  
  <p>How can I create a similar stored property for shear ?</p>
  
  <p>Edit:</p>
  
  <p>Trying </p>
  
  <pre><code>QTransform t;
  t.shear(shx, shy);
  item-&gt;setTransform(t, true);
  </code></pre>
  
  <p>also gives me a giant scaling and some rotation... I have tried to divide <code>shx</code> and <code>shy</code> by 100 and it seems reasonable (not sure if correct ?).</p>
  
  <p>Note - will move the code snippet in answer, since it seems it will work.</p>