qt的场景视图中 项设置pos无效???
代码如下:
QGraphicsScene *t_scene=new QGraphicsScene(this);
t_scene->setItemIndexMethod(QGraphicsScene::NoIndex);
QPixmap p;
p.load("c:/qtTest/1.jpg");
QGraphicsPixmapItem *item=new QGraphicsPixmapItem(p);
t_scene->addItem(item);
item->setPos(100,0);
QGraphicsView *t_view=new QGraphicsView(t_scene,this);
上面的item->setPos(100,0);不管怎么设置 图片都是在同一个位置 怎么回事啊》??