Fixed size QGraphicsItems in multiple views?

前端 未结 2 787
不知归路
不知归路 2021-01-13 09:05

I\'m visualizing a graph using Qt\'s graphics view framework. It looks something like this:

\"Example

2条回答
  •  無奈伤痛
    2021-01-13 09:36

    QGraphicsItem::setFlag(QGraphicsItem::ItemIgnoresTransformations,true);
    

    This should do the trick. 

提交回复
热议问题