What would be nice is to have a minimal compilable example that shows that behaviour.
I got the answer . MainWindow.cpp is like that
I was wondering if you could use
QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget * widget) const
No one has replied
Hi and welcome to devnet,
Did you put your widgets in layouts ?
You might also be interested by QGraphicsView::fitInView.
Since your widgett is called PixmapView then in your CanvaTest class you can use ui->PixmapView ..
Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.