windows平台Qt的setGeometry警告
本文于447天之前发表,文中内容可能已经过时。
经常出现setGeometry: Unable to set geometry
查看调用堆栈如下
查看showEvent函数发现如果没有Qt::WA_Moved属性则会调用adjustPosition函数
1 | void QDialog::showEvent(QShowEvent *event) |
解决方案
在调用show(); 以及相似函数前调用
设置Qt::WA_Moved刷卡
1 | setAttribute(Qt::WA_Moved, true); |
赏
支付宝打赏
微信打赏


您的支持是我前行的动力!