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 );
2番目のパラメータを使用するだけです。
setAttribute(Qt::WA_OpaquePaintEvent , false)
http://doc.qt.io/qt-5/qwidget.html#setAttributeを参照してください