Search code examples
c++qtuser-interfaceqt4signals-slots

Basic QT in C++ - Having trouble comprehending


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.


Solution

  • See this: Signals & Slots