aluuu
aluuu

Reputation: 453

QGraphicsScene and positioning

How to put QGraphicsScene's (0,0) to top-left corner of QGraphicsView?

Upvotes: 2

Views: 1138

Answers (2)

Whatang
Whatang

Reputation: 10356

Try doing setCenterOn(0,0) on the QGraphicsView?

Upvotes: 1

Patrice Bernassola
Patrice Bernassola

Reputation: 14426

QGraphicsScene will be filled in the whole QGraphicsView but You have the setSceneRect function to choose the QGraphicsScene part you want to see in the QGraphicsView.

Upvotes: 0

Related Questions