📄 subform1.cpp
字号:
#include "subform1.h"#include "qmessagebox.h"/* * Constructs a subform1 which is a child of 'parent', with the * name 'name' and widget flags set to 'f' * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */subform1::subform1( QWidget* parent, const char* name, bool modal, WFlags fl ) : Form1( parent, name, modal, fl ){}/* * Destroys the object and frees any allocated resources */subform1::~subform1(){ // no need to delete child widgets, Qt does it all for us}/* * public slot */void subform1::newSlot(){ qWarning( "subform1::newSlot() not yet implemented!" ); QMessageBox::information(this, "hello","hello","hello");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -