Hello! Long time no see!
The following two fragments, which is better, why?
Qt Code:
void oneDialog::function() { QTestDialog* pt= new QTestDialog(this); // ........ delete pt; } void oneDialog::function() { QTestDialog dialog(this); // ........ }To copy to clipboard, switch view to plain text mode
Thanks!
Bookmarks