normally we do initialize for pointer like this...
how abouthow to do initialize for QList<QWidget *> ?QList< QWidget *> list;
normally we do initialize for pointer like this...
how abouthow to do initialize for QList<QWidget *> ?QList< QWidget *> list;
Qt Code:
QList<QWidget*> *list = new QLisl<QWidget*>();To copy to clipboard, switch view to plain text mode
Is this what you mean?
Or, just use QWidgetList. ;-)
Most of the time, I typedef template usages just for code legibility, and to keep my sanity if I change something later like, say, to a vector rather than a list.
In any case, what marcel said is right.
Bookmarks