Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt closeEvent() error



  • i've build my GUI app with Qt Designer and when i want to use closeEvent() , i got an error in my GUI. every button in that window will pop up the message box which should be shown only if the 'x' button is pressed, looks like every button in that window is affected by that closeEvent() procedure.
    I would like to know how to do.
    Thank you


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Qt are you using ?
    On what platform ?
    Can you show the code you implemented ?


Log in to reply