In relation to thread http://www.qtcentre.org/forum/f-newb...ion-10276.html
I have some nested structures that are referenced with a
void passCompletedQList(QList<NestedStrucutre *> *completeReferenceList);
void passCompletedQList(QList<NestedStrucutre *> *completeReferenceList);
To copy to clipboard, switch view to plain text mode
This seems to work best as passing the list as a single pointer to another function for insertion rather then many seperate function calls to append the entries in the main function.
My problem is in the working function I am going to need memory for the QList pointer and doing something like
QList<NestedStrucutre *> *workingReference;
workingReference
= new QList(QList<NestedStrucutre
*>
);
... Create NestedStrutures append them etc ...
passCompletedQList(workingReference);
QList<NestedStrucutre *> *workingReference;
workingReference = new QList(QList<NestedStrucutre *>);
... Create NestedStrutures append them etc ...
passCompletedQList(workingReference);
To copy to clipboard, switch view to plain text mode
gives me a "use of class template requires template argument list" error. My lack of formal training has left me with some gaps in logic I just do not understand. Any help would be greatly appreciated.
Bob
Bookmarks