qt-interest@trolltech.com
[Top] [All Lists]

Re: class in a QList

Subject: Re: class in a QList
From: Malte Witt
Date: Mon, 9 Oct 2006 12:11:00 +0200
> I know that. Maybe I should have expressed myself in a better way. I
> want to store a pointer to an _uninitialised class_.

This cannot work, because the memory is allocated in the "new" statement. 
So there is no way to have a pointer to the memory before it is allocated. 
(Somewhat a chicken-egg problem ;-)

You can either put dummies in your for-loop or come up with another 
approach ;-)

Regards,
Malte

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>