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.
是QImage基于QSharedData?Qimage跟随pimplor copy on write? _ 例如,复制(通过复制或分配)Qimage 会制作像素的深层复制吗?
QImage
QSharedData
Qimage
pimpl
copy on write
QImage 是写时复制。在您开始修改它之前,它不会复制像素。
对于将它传递给函数时的价值,我总是使用 const QImage & 无论如何不要吓到任何人。