i have two screen,
first screen contains 4 button and 1 label
second screen contains 4 button and 1 label
my app will start in first screen,,when i move to second screen first screen buttons and label should delete permenantly, so i used code
Qt Code:
  1. void Widget:: deactivefirstscreen()
  2. {
  3. delete button1;
  4. delete button2;
  5. "
  6. "
  7. delete label1;
  8. }
To copy to clipboard, switch view to plain text mode 
i getting erro when command reached this method()
Error:
Qt Code:
  1. The program has unexpectedly finished.
To copy to clipboard, switch view to plain text mode 

please give me clarification for this
Thanks in advance