I want to know the size of a certain QGraphicsView. Its size isn\'t fixed because the widget is part of a grid layout. I tried using this->ui->myGra
QGraphicsView
this->ui->myGra
Constantly received 100x30 as the size of my QGraphicsView as well. It turned out I was asking for the size of the QGraphicsView before it was shown.
After moving my initialization code to showEvent, I got the correct dimensions.