[Qt-interest] Question regarding pointer parameters in functions

Patric userqt at gmail.com
Fri Jul 3 10:41:43 CEST 2009


Hello, 
does anyone know what happens if we pass a pointer as parameter to function in QT ? 
Will the function release the memory of the object in the pointer, when it finish working with it ? 

For example 

void QStandardItemModel::appendRow ( QStandardItem * item ), if I call it the following way : appendRow(new QStandardItem("testItem"));

Thank you in advance,
Patric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090703/e57b68f8/attachment.html 


More information about the Qt-interest-old mailing list