是個問題呀覆获,一直沒找到合適的方法攀芯。 fitInView centerOn boundingRect shape toSceneCoor drawBackground hierarchyView toWorldCoor 格點 精確 scene設(shè)置rootItem后對原parent體系的變更 (item *a; item *b; b->setParent(a); scene()->addItem();)