Hi, this is proberbly a really stupid question but im learning QT and C++ as i write, so i understand the following (which i think is correct):

int k; -> create a variable on the stack with local scope
int *ptr -> create a pointer (i think on the heap??)
ptr = &k -> point to adress of k

Also new is used to put things on the heap:

int *k = new int;

Ok so what does QList<int*> do???? is this also a pointer? what is the difference and whay would i use this rather than QList<int>. I guess it is somethin to do with pointers but i can only find information on *ptr and &variable. Also i see you cant do:

int* k;

Sorry if this is a stupid question but thanks for any help!