?? formtest.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 + -