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.
大量の絵が必要なパイ型のウィジェットがあります。したがって、paintEventでペイントされたら、QPainterをキャッシュしたいと思います。後で再利用します。これを行うための直接またはハッキーな方法はありますか?
QPixmap をキャッシュとして使用します。QPainter はそれを使用して直接ペイントすることもできます。