Hello!

If I place widgets in QGraphicsView, they don't fits its size:

Qt Code:
  1. // Add table in the scene
  2. QGraphicsGridLayout *grid = new QGraphicsGridLayout();
  3. grid->addItem(scene->addWidget(tableWidget), 0, 0);
  4.  
  5. QGraphicsProxyWidget* form = new QGraphicsProxyWidget;
  6. form->setLayout(grid);
  7. form->setCacheMode(QGraphicsItem::ItemCoordinateCache);
  8.  
  9. scene->addItem(form);
To copy to clipboard, switch view to plain text mode 

In the example above there is table in the scene, and if scene will be set to QGraphicsView, the table doesn't fit size according to the size of QGraphicsView.

That's the point. ^) Does anybody come across with such a problem?

Thanks.