Main Menu

signal/slots

Started by Mejda, July 18, 2012, 07:56:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mejda

Hello,
I created a class to add another level of group (It becomes years, groups, subgroups and subgroupsTp) All works well but I still have the close button: when I link it to the close slot, my program terminates and displays an error message"The program ended abruptly". I did not understand where my problem is localized. please help me and thank you :)

Volker Dirr

Normally there are other errors visible if you write a false signal or slot. So i guess you signal and slot connection is correct and it crash, because the function in your slot try to access to unknown memory. so you should check the function from the slot.

Mejda

Hello,
but the function is just "this.close()" that is all.
I hope that you understand me because in the only the close button not working.

Volker Dirr

the destructor is called then. so check your ~xxx() function.

Mejda

OK this works I removed the destructor thank you Volker Dirr :)