Quote:
I hav used the following statement for the label creation---QLabel *m_pLabel=new QLabel;
But in the class i am inherting QMainWindow--in cpp file i am using the following statement
QClass::QClass():QMainWindow(0);
i am able to use the same delete statemnts for other widgets..But only for some labels i am not able to do so...Is there any other way to get rid of that
As it was suggested earlier in this thread, if you pass a parent when you create your widgets, then that parent will handle disposal.