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.
我有需要大量绘画的饼形小部件。所以我想缓存 QPainter 一旦它在paintEvent中被绘制。并在以后重用它。有没有直接或hacky的方式来做到这一点?
使用 QPixmap 作为缓存,QPainter 也可以使用它直接绘制。