title: check when a button is clicked event qt
body: <p>I am a beginner in Qt and I would like to know, how can I create an event which checks when a button in the windows gets clicked? The window has a single push button.</p>
  
  <p>I could not find a simple and correct example for my question, that's why I am asking here. I did google first.</p>
  
  <p>Thank you</p>