title: How to create resizable cusom widget on the QGraphicsScene
body: <p>I study QGraphics framework and want to create custom resizable widget.</p>
  
  <p>For example I created a proxy widget with QTextEdit</p>
  
  <pre><code>QGraphicsLinearLayout* l = new QGraphicsLinearLayout;
  QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget;
  proxy-&gt;setWidget(  new QTextEdit );
  proxy-&gt;setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
  l-&gt;setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
  l-&gt;addItem( proxy );
  
  QGraphicsWidget* w = new QGraphicsWidget;
  w-&gt;setLayout( l );
  w-&gt;setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
  w-&gt;setFlag( QGraphicsItem::ItemIsMovable );
  
  scene-&gt;addItem( w ); 
  </code></pre>
  
  <p>Widget looks fine, but I can't find out how add ability to resize it. 
  I searched in the Qt Examples, and google, but can't find any example.</p>