
Originally Posted by
deejross
Since I already gave an example of creating the object on the heap,
...which were wrong. You are missing a *.
But anyway. What do you don't like with
QPainter p(this);
To copy to clipboard, switch view to plain text mode
Would
QPainter p;
To copy to clipboard, switch view to plain text mode
satisfy you? If so great, because
QPainter p(this);
To copy to clipboard, switch view to plain text mode
is just a shorthand for
p.begin(this);
QPainter p;
p.begin(this);
To copy to clipboard, switch view to plain text mode
Or please elaborate, what puzzles you exactly.
Bookmarks