mickey
6th August 2006, 13:47
hi, I declare it inside mainform costructor:
QLabel* label1 = new QLabel(PushButton);
label1->setPixmap(QPixmap::fromMimeSource("end.png"));
//put a label on a pushbutton created in Designer
I wonder this: when the mainForm costructor is executed, and program is out of the scope of mainform costructor, should be label1 destroyed?!?!
If it is so: why I can see the pixmap? But I see the pixmap for all life of program....thanks.
QLabel* label1 = new QLabel(PushButton);
label1->setPixmap(QPixmap::fromMimeSource("end.png"));
//put a label on a pushbutton created in Designer
I wonder this: when the mainForm costructor is executed, and program is out of the scope of mainform costructor, should be label1 destroyed?!?!
If it is so: why I can see the pixmap? But I see the pixmap for all life of program....thanks.