How can I execute a method when the window is closed with Qt Jambi?
Unsolved
Language Bindings
-
Hi, I would like to do something similar to what I've done with the following code, i.e. calling actionBtnOptimize_clicked() when btnOptimize is clicked, but when the user closes the window.
private static Ui_MainWindow ui; ui.btnOptimize.clicked.connect(this, "actionBtnOptimize_clicked()"); public static void actionBtnOptimize_clicked(){ ... }
-
Hi,
What about re-implementing closeEvent ?
-
Thanks. Since the code of my GUI is generated automatically using Qt 4 Designer , I don't know how to modify the standard behavior when the main window is closed. I cannot find something that explains how to do it in practice. Could you please give me an useful link or example?