Hi all,

Given:

Qt Code:
  1. class MyView : public QAbstractItemView
  2. {
  3. ...
  4.  
  5. private:
  6. QGraphicsView *view_;
  7. };
To copy to clipboard, switch view to plain text mode 

and:

Qt Code:
  1. MyView::MyView(...)
  2. {
  3. ...
  4. view_ = new QGraphicsView;
  5. setViewport( view_ );
  6. ...
  7. }
To copy to clipboard, switch view to plain text mode 

How can I get the viewport of QGraphicsView to match the viewport of MyView when resizing? As it always stays as a fixed size. How can I get it to stretch to to the whole MyView sreen space?

Kind Regards,