简体   繁体   中英

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.

Look at the examples in the Qt folder.

c:/qt/4.7.1/examples/

请参阅: 信号和插槽

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM