You can have a stack variable with a small memory footprint that will simply be initialized in the init, like so:
img is allocated on stack but initialized (and expanded) in init().Qt Code:
class .. { private: QImage img; ...}; void ...::init(){ }To copy to clipboard, switch view to plain text mode
BTW. In the interface those methods have to be virtual.
Bookmarks