各位大牛:
我在scene中通过下面方法获得路径并在scene中加载图片:
QPainter painter(this);
QPixmap pixmap;
QString fileName = QFileDialog::getOpenFileName(this,tr("Open File"), QDir::currentPath());
pixmap.load(fileName);
if (!fileName.isEmpty())
painter.drawPixmap(0,0,pixmap.height(),pixmap.width(),pixmap);
scene->addPixmap(pixmap);
然后我在scene中添加item,并将不同的item分到不同的itemgroup中,但是为什么group中的item添进去就会显示在图片的下方,看不见,但是可以选中………………
跪求解答啊!!!!!