Just a quick question about using QHash with pointers.
Lets say I have the following snippet:
//===========
QWebView *view;
QHash<int, QWebView *> hash;
for(int i=0; i<10; i++) {
view = new QWebView(this);
hash.insert(i, view);
}
////go do something meaningful
//or do a hash.clear();
for(int j=0; j<10; j++) {
hash.remove(j);
}
//===========
After the remove or clear is called, do I still need to delete the
pointers? If so, would I just iterate through them using the value
function and delete them one by one?
-Jason
--
//-----------------------//
Jason R. Kretzer
Lead Application Developer
ja...@gocodigo.com
C:606.792.0079
H:606.297.2551
//-----------------------//
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest