• 5037阅读
  • 2回复

如何设置关闭时隐藏 [复制链接]

上一主题 下一主题
离线beajisong
 

只看楼主 倒序阅读 楼主  发表于: 2007-07-19
如何设置关闭时隐藏
— 本帖被 XChinux 执行加亮操作(2008-07-18) —
一般我们点叉时调用CLOSE
怎么能让他只HIDE阿?
[ 此贴被XChinux在2008-07-18 12:01重新编辑 ]
离线beajisong

只看该作者 1楼 发表于: 2007-07-21
自己顶顶
离线XChinux

只看该作者 2楼 发表于: 2007-07-21
bool QWidget::close ()  [slot]
Closes this widget. Returns true if the widget was closed; otherwise returns false.
First it sends the widget a QCloseEvent. The widget is hidden if it accepts the close event. If it ignores the event, nothing happens. The default implementation of QWidget::closeEvent() accepts the close event.
If the widget has the Qt::WA_DeleteOnClose flag, the widget is also deleted. A close events is delivered to the widget no matter if the widget is visible or not.
The QApplication::lastWindowClosed() signal is emitted when the last visible primary window (i.e. window with no parent) with the Qt::WA_QuitOnClose attribute set is closed. By default this attribute is set for all widgets except transient windows such as splash screens, tool windows, and popup menus.
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
快速回复
限100 字节
 
上一个 下一个