qtuser-interfacemouseclick-eventmousepress

What is the difference between clicked and pressed in Qt?


How do I distinguish between Clicked and Pressed?

What does Released mean?


Solution

  • With these functions you can create a snap-switch for example:

    when you press the button, the light will switch off / the music stop / etc , when you release it, light switches back on / the music starts again etc.