⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 学习嵌入式LINUX的好东西
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'test.ui'**** Created: 日  6月 25 20:58:58 2006**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.1   edited Nov 21 17:40 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "test.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/*  *  Constructs a test as 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. */test::test( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "test" );    btnOk = new QPushButton( this, "btnOk" );    btnOk->setGeometry( QRect( 80, 210, 60, 30 ) );    btnExit = new QPushButton( this, "btnExit" );    btnExit->setGeometry( QRect( 170, 210, 70, 31 ) );    languageChange();    resize( QSize(351, 285).expandedTo(minimumSizeHint()) );}/* *  Destroys the object and frees any allocated resources */test::~test(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void test::languageChange(){    setCaption( tr( "test" ) );    btnOk->setText( tr( "&Ok" ) );    btnExit->setText( tr( "E&xit" ) );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -