Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, February 2007
Re: Rationale behind disabling the Copying of QObjects


Message 1 in thread

>And for the official statement look into Trolltechs Knowledgebase:
>http://www.trolltech.com/developer/knowledgebase/582/

Quoted from the knowledgebase :
"QObject, and subclasses of QObject (QWidget etc.) rely on private
classes that contain a number of internal pointers and mechanics that
are quite complex and difficult to copy correctly."

What exactly are these internal pointers and mechanics. Is this the
Qt's pimpl implementation the QObjectPrivate or is it something else ?

--
 [ signature omitted ] 

Message 2 in thread

On 01.02.07 11:43:18, Sunil Thaha wrote:
> >And for the official statement look into Trolltechs Knowledgebase:
> >http://www.trolltech.com/developer/knowledgebase/582/
> 
> Quoted from the knowledgebase :
> "QObject, and subclasses of QObject (QWidget etc.) rely on private
> classes that contain a number of internal pointers and mechanics that
> are quite complex and difficult to copy correctly."
> 
> What exactly are these internal pointers and mechanics. Is this the
> Qt's pimpl implementation the QObjectPrivate or is it something else ?

Look at the source and you'll see. Yes a good part of it is the pimpl,
others have explained what the problem with that is in this thread
already.

Andreas

-- 
 [ signature omitted ]