我想把embeddeddialogs例子中 窗口里边的小对话框的 title bar去掉,所以在CustomProxy的构造函数里加了一句setWindowFlags(Qt::FramelessWindowHint)
结果,当鼠标再做悬停时,卷起的窗口都在旁边未变形窗口的后面去了,这是咋回事?
CustomProxy::CustomProxy(QGraphicsItem *parent, Qt::WindowFlags wFlags)
: QGraphicsProxyWidget(parent, wFlags), popupShown(false), currentPopup(0)
{
timeLine = new QTimeLine(250, this);
connect(timeLine, SIGNAL(valueChanged(qreal)),
this, SLOT(updateStep(qreal)));
connect(timeLine, SIGNAL(stateChanged(QTimeLine::State)),
this, SLOT(stateChanged(QTimeLine::State)));
this->setWindowFlags(Qt::FramelessWindowHint); // Added
}