Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用设置属性setAttribute( Qt::WA_OpaquePaintEvent );有没有办法可以取消设置此属性?还是我需要设置一个默认属性才能使其恢复原状?谢谢。
setAttribute( Qt::WA_OpaquePaintEvent );
只需使用第二个参数,
setAttribute(Qt::WA_OpaquePaintEvent , false)
见http://doc.qt.io/qt-5/qwidget.html#setAttribute