首页| 论坛| 消息

标题:QT例子"embeddeddialogs" 的问题
作者:cyberpunker
日期:2016-12-08 00:35
内容:

我想把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)),
[color=# ..


#1 [lemonzll 12-08 12:52]
windowFlags写成Qt::Window | Qt::FramelessWindowHint。没有Window属性的时候堆叠层次按的创建顺序,后面的会盖住前面的,有window会整体放在前面
#2 [cyberpunker 12-08 15:38]
可行 ,谢大侠出手

回复 发表
主题 版块