I have a QGraphicsView with icons inside QPlainTextEdit. View sticks fine to QPlainTextEdit's size and scrolls too, the problem is to set the height of the QGraphicsScene to the height of the view.
Scene size is set to match the view, with setSceneRect(), but has no effect.
I colored the view with violet and scene with red to be sure.

Can you help me with this setback, please? I haven't found anyone with similar problem.