[Qt-interest] QObject copy construction
Andrea Franceschini
therealmorpheu5 at gmail.com
Tue Feb 17 12:48:27 CET 2009
I know that QObjects cannot be copy constructed and I understand the
reason but my point is: how can I have my class extend QObject and fit
into a container such as QHash? I mean, Whenever I try to browse the
container, be it via foreach or via iterators, the copy constructor
always gets called.
What am I missing? Am I to discard all the advantages of inheriting
QObject? I don't want to define Q_DISABLE_COPY because it is
"dangerous".
Thanks,
--
Andrea
More information about the Qt-interest-old
mailing list