clearWState(WState_Polished)编译出错

来源:互联网 发布:电脑怎么切换网络 编辑:程序博客网 时间:2024/05/16 05:48

问题如下:

WState_Polished was not declared in this scope

‘clearWState’ was not declared in this scope

解决方法:

Qt::WA_WState_Polished 替换WState_Polished

屏蔽clearWState函数

继续加两行代码

testAttribute(Qt::WA_WState_Polished)

setAttribute(Qt::WA_WState_Polished, true / false)

0 0