摘要: 头文件中:引用头文件 #include <QTimer> 头文件中:在类中创建Qtimer指针m_timer,创建返回该指针的方法get_timer(). 点击查看代码 class SendFrameBox : public QGroupBox { Q_OBJECT public: explicit 阅读全文
posted @ 2025-06-17 09:11 ShererYANG 阅读(12) 评论(0) 推荐(0)
摘要: cpp文件添加全局变量,表示全局状态 cpp bool isSending=false; //播放和暂停的标志位 pushButton和槽函数链接 cpp connect(m_ui->sendButton_2, &QPushButton::clicked, this, &SendFrameBox:: 阅读全文
posted @ 2025-06-15 15:59 ShererYANG 阅读(11) 评论(0) 推荐(0)