Sure, why not.
I assume you handle deletion of the QImage pointers somewhere else?

Cheers,
_