📄 hello_base.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'hello_base.ui'**** Created: Wed Aug 1 15:23:15 2007** 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( 320, 241 ); setMinimumSize( QSize( 320, 240 ) ); setMaximumSize( QSize( 640, 480 ) ); setSizeIncrement( QSize( 320, 240 ) ); setBaseSize( QSize( 640, 480 ) ); setCaption( tr( "hello dds!" ) ); QWhatsThis::add( this, tr( "hello?" ) ); PushButton3 = new QPushButton( this, "PushButton3" ); PushButton3->setGeometry( QRect( 130, 140, 84, 28 ) ); PushButton3->setText( tr( "say goodbye" ) ); PushButton4 = new QPushButton( this, "PushButton4" ); PushButton4->setGeometry( QRect( 220, 140, 84, 28 ) ); PushButton4->setText( tr( "leds on" ) ); PushButton2 = new QPushButton( this, "PushButton2" ); PushButton2->setGeometry( QRect( 20, 140, 100, 28 ) ); PushButton2->setText( tr( "say hello to dds" ) ); MessageLabel = new QLabel( this, "MessageLabel" ); MessageLabel->setGeometry( QRect( 30, 50, 270, 30 ) ); MessageLabel->setText( tr( "" ) ); // signals and slots connections connect( PushButton2, SIGNAL( clicked() ), this, SLOT( SayHello() ) ); connect( PushButton3, SIGNAL( clicked() ), this, SLOT( Saygoodbye() ) ); connect( PushButton4, SIGNAL( clicked() ), this, SLOT( dds() ) );}/* * 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!" );}void HelloBaseForm::Saygoodbye(){ qWarning( "HelloBaseForm::Saygoodbye(): Not implemented yet!" );}void HelloBaseForm::dds(){ qWarning( "HelloBaseForm::dds(): Not implemented yet!" );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -