C Qt 信号和槽 | 珊瑚贝

C++ Qt Signals and Slots


我很难连接到不同类中定义的 SLOT。我有 2 个类 – 计算和 MainWindow。 MainWindow 应该只处理程序的 GUI 部分,而 Computations 处理计算。我正在创建一个计算器。

基本上,我想了解如何从 MainWindow 类连接到 Computations 类中的 SLOT。

  • 欢迎来到stackoverflow。请提供一个最小的可重现示例,以便我们更好地理解您做了什么。
  • 你用的是什么版本的Qt?
  • 参考这个 doc.qt.io/archives/qt-4.8/signalsandslots.html 它对初学者有好处


我猜你已经检查了 Qt Signals


n


n


n


来源:https://www.codenong.com/52111509/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8836.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?