I'm having trouble understanding how QT works. Can somebody show me an example, where you have a frame with a button named "button1" and when that button is pushed, do something, maybe a
cout << "hi";
I can't seem to understand how to setup the slot for a QPushButton.
See this: Signals & Slots