Hi
I am using Qt 4.8.7 on Windows.
Sample of some code
Kindly tell me which is the best process...Qt Code:
{ Q_OBJECT public: ~MyWidget(); private: QPushButton *p1; QLabel *p2; }; { } MyWidgt::~MyWidgt() { p1->deleteLater(); p2->deleteLater(); } int main(int argc, char*argv[]) { MyWidgt *qq = new MyWidgt; qq->deleteLater(); or delete qq; }To copy to clipboard, switch view to plain text mode
qq->deleteLater();
or delete qq;
Bookmarks