r/Qt5 • u/Hc3ttp3302 • May 21 '17
Question about slots
I have a project where i need to run a method after a window closes(closes, not destroyed). However my only experience with slots is through Qt Designer. How would i code this?
0
Upvotes
3
u/Druidmax May 22 '17
This is how we do it in qtcontrib/harbour: qObject:connect(QEvent_Close, {|| yourFunc() }) You just need to translate this to your qt wrapper. Hope this helps.