📄 hello_base.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'hello_base.ui'**** Created: Fri Jan 13 17:16:48 2006** by: The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "hello_base.h"#include <qlabel.h>#include <qpushbutton.h>#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>/* * Constructs a HelloBaseForm which is a child of 'parent', with the * name 'name' and widget flags set to 'f' */HelloBaseForm::HelloBaseForm( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ){ if ( !name ) setName( "HelloBaseForm" ); resize( 632, 480 ); setMaximumSize( QSize( 640, 480 ) ); setCaption( tr( "My first Qtopia Application" ) ); QWhatsThis::add( this, tr( "hello?" ) ); PushButton1 = new QPushButton( this, "PushButton1" ); PushButton1->setGeometry( QRect( 245, 140, 185, 35 ) ); PushButton1->setText( tr( "Hello,MagicARM2410!" ) ); PushButton1->setAutoResize( TRUE ); MessageLabel = new QLabel( this, "MessageLabel" ); MessageLabel->setGeometry( QRect( 250, 250, 270, 30 ) ); MessageLabel->setText( tr( "" ) ); // signals and slots connections connect( PushButton1, SIGNAL( clicked() ), this, SLOT( SayHello() ) );}/* * Destroys the object and frees any allocated resources */HelloBaseForm::~HelloBaseForm(){ // no need to delete child widgets, Qt does it all for us}void HelloBaseForm::SayHello(){ qWarning( "HelloBaseForm::SayHello(): Not implemented yet!" );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -