如题,代码如下
m_pScene->clear();
QWidget* widget = new QWidget;
widget->resize(w,h);
QGraphicsProxyWidget *proxy = m_pScene->addWidget(widget,Qt::BypassGraphicsProxyWidget | Qt::Window);
proxy->setFlags(QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
proxy->setPos(x,y);
m_pScene->update();
return ;
按理来说应该可以move了,但是鼠标点上去不能move,谁能帮忙解答一下