QT系列教程 第二讲 相关资料 (exec、accepted)

 
int QDialog::exec ()   [slot] //这是个槽,本质上就是一普通的成员函数

Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.

If the dialog is   application modal, users cannot interact with any other window in the same application until they close the dialog.
If the dialog is   window modal, only interaction with the parent window is blocked while the dialog is open. By default, the dialog is application modal.
中文翻译:如果这个对话框是程序模式,用户不能在同一个应用程序里访问其它窗口,除非我们把这个对话框关闭;
                  如果这个对话框是窗口模式,只要这个对话框是处于打开状态的,它就不能和父窗口进行通信;
PS:modal dialog包括 window modal, application modal;

void QDialog::accepted ()   [signal]//这是个信号,本质上也就是成员函数

This signal is emitted when the dialog has been accepted either by the user or by calling accept() or done() with the QDialog::Accepted argument.

Note that this signal is not emitted when hiding the dialog with hide() or setVisible(false). This includes deleting the dialog while it is visible.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值