首页 > 其他 > 详细

2. 一些小函数

时间:2015-10-18 22:59:19      阅读:338      评论:0      收藏:0      [点我收藏+]

摘要: 比较重要的函数。  哪有不重要的函数呢?   标题就这样起,有合适的名字再改。

-----------------------------------------------------------------------------------------------------------

1.  int QDialog::exec() [slot]

帮助文档:

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.

==================================

2. void QDialog::accepted ()  [signal]

帮助文档

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.

This function was introduced in Qt 4.1.

===================================

2. 一些小函数

原文:http://www.cnblogs.com/584709796-qq-com/p/4890480.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!