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

📄 formtest.cpp

📁 在PXA270开发平台上
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'formtest.ui'**** Created: Thu Apr 9 14:12:49 2009**      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 "formtest.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/*  *  Constructs a Formtest 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. */Formtest::Formtest( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "Formtest" );    btnDisplay = new QPushButton( this, "btnDisplay" );    btnDisplay->setGeometry( QRect( 20, 60, 90, 31 ) );    btnExit = new QPushButton( this, "btnExit" );    btnExit->setGeometry( QRect( 20, 110, 90, 31 ) );    btnClose = new QPushButton( this, "btnClose" );    btnClose->setGeometry( QRect( 130, 10, 101, 31 ) );    btnOpen = new QPushButton( this, "btnOpen" );    btnOpen->setGeometry( QRect( 20, 10, 90, 31 ) );    btnStop = new QPushButton( this, "btnStop" );    btnStop->setGeometry( QRect( 140, 60, 90, 30 ) );    languageChange();    resize( QSize(268, 161).expandedTo(minimumSizeHint()) );}/* *  Destroys the object and frees any allocated resources */Formtest::~Formtest(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void Formtest::languageChange(){    setCaption( tr( "frmtest" ) );    btnDisplay->setText( tr( "Display" ) );    btnExit->setText( tr( "exit" ) );    btnClose->setText( tr( "close" ) );    btnOpen->setText( tr( "Open" ) );    btnStop->setText( tr( "Stop" ) );}

⌨️ 快捷键说明

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