clearWState(WState_Polished)编译出错

问题如下:

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)

;