摘要: QT信号槽机制 例如将按钮点击信号连接到文本框的更新槽函数上 点击时按钮发出点击信号 文本框接收信号执行更新操作 下面通过一个简单的计算球体体积的例子来介绍信号槽机制: dialog.h #ifndef DIALOG_H #define DIALOG_H #include <QDialog> #in 阅读全文
posted @ 2024-04-23 23:10 acbh 阅读(20) 评论(0) 推荐(0)
摘要: Hello World!!! #include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b << endl; } 阅读全文
posted @ 2022-11-12 20:42 acbh 阅读(16) 评论(0) 推荐(0)