qt中clicked()问题

shengan888 2011-12-07 07:17:29
Qt中clicked()与clicked(bool)有什么区别?
...全文
403 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
shengan888 2011-12-08
  • 打赏
  • 举报
回复
懂啦!
念茜 2011-12-07
  • 打赏
  • 举报
回复
我想楼主迷糊的bool值怎么起作用,初次接触一般都会有这个问题。
转换状态,比如可以打钩,选择,或者压下
刀刀亮 2011-12-07
  • 打赏
  • 举报
回复
This signal is emitted when the button is activated (i.e. pressed down then released while the mouse cursor is inside the button), when the shortcut key is typed, or when click() or animateClick() is called. Notably, this signal is not emitted if you call setDown(), setChecked() or toggle().

If the button is checkable, checked is true if the button is checked, or false if the button is unchecked.
楼主手册里面有很详细的解释

16,240

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧