Hello,
Here is my issue.
I have a CustomWidget class which inherits from QWidget and has a UI file. This widget’s main layout has its policy to x expanding, y expanding.
I want this widget to fit in a QGraphicsView by taking all the space available by the view (horizontally and vertically)
For that, I created a QGraphicsScene, then used fitInView form the view.
Then used scene->addWidget(customwidget)
The CustomWidget is centered in the view but doesnt fit it. Also, the widget’s global dimensions in the view are the same as the ones in the CustomWidget’s UI file , which means no automatic expansion …
Cant figure out what’s happening here :(
Cheers,
↧