/****************************************************************************
** Form implementation generated from reading ui file 'rg.ui'
**
** Created: 三 12月 2 14:46:28 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 "rg.h"
#include <qvariant.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "../rg.ui.h"
/*
* Constructs a jisuan 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.
*/
jisuan::jisuan( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "jisuan" );
pushButtonjia = new QPushButton( this, "pushButtonjia" );
pushButtonjia->setGeometry( QRect( 20, 50, 30, 30 ) );
pushButtonjian = new QPushButton( this, "pushButtonjian" );
pushButtonjian->setGeometry( QRect( 70, 50, 30, 30 ) );
pushButtonchen = new QPushButton( this, "pushButtonchen" );
pushButtonchen->setGeometry( QRect( 120, 50, 30, 30 ) );
pushButtonchu = new QPushButton( this, "pushButtonchu" );
pushButtonchu->setGeometry( QRect( 160, 50, 30, 30 ) );
pushButton1 = new QPushButton( this, "pushButton1" );
pushButton1->setGeometry( QRect( 20, 90, 30, 30 ) );
pushButton2 = new QPushButton( this, "pushButton2" );
pushButton2->setGeometry( QRect( 70, 90, 30, 30 ) );
pushButton3 = new QPushButton( this, "pushButton3" );
pushButton3->setGeometry( QRect( 120, 90, 30, 30 ) );
pushButton4 = new QPushButton( this, "pushButton4" );
pushButton4->setGeometry( QRect( 160, 90, 30, 30 ) );
pushButton5 = new QPushButton( this, "pushButton5" );
pushButton5->setGeometry( QRect( 20, 130, 30, 30 ) );
pushButton6 = new QPushButton( this, "pushButton6" );
pushButton6->setGeometry( QRect( 70, 130, 30, 30 ) );
pushButton7 = new QPushButton( this, "pushButton7" );
pushButton7->setGeometry( QRect( 120, 130, 30, 30 ) );
pushButton8 = new QPushButton( this, "pushButton8" );
pushButton8->setGeometry( QRect( 160, 130, 30, 30 ) );
pushButton9 = new QPushButton( this, "pushButton9" );
pushButton9->setGeometry( QRect( 20, 170, 30, 30 ) );
pushButton0 = new QPushButton( this, "pushButton0" );
pushButton0->setGeometry( QRect( 70, 170, 30, 30 ) );
pushButtondeng = new QPushButton( this, "pushButtondeng" );
pushButtondeng->setGeometry( QRect( 120, 170, 30, 30 ) );
pushButtonshan = new QPushButton( this, "pushButtonshan" );
pushButtonshan->setGeometry( QRect( 160, 170, 30, 30 ) );
lineEdit1 = new QLineEdit( this, "lineEdit1" );
lineEdit1->setGeometry( QRect( 28, 20, 160, 22 ) );
pushButton121 = new QPushButton( this, "pushButton121" );
pushButton121->setGeometry( QRect( 20, 210, 30, 31 ) );
pushButton18 = new QPushButton( this, "pushButton18" );
pushButton18->setGeometry( QRect( 70, 210, 120, 31 ) );
languageChange();
resize( QSize(219, 263).expandedTo(minimumSizeHint()) );
// signals and slots connections
connect( pushButton0, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton1, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton2, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton3, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton4, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton5, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton6, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton7, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton8, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButton9, SIGNAL( clicked() ), this, SLOT( shuru() ) );
connect( pushButtonchen, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonchu, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonjia, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButtonjian, SIGNAL( clicked() ), this, SLOT( suanfa() ) );
connect( pushButton121, SIGNAL( clicked() ), this, SLOT( dian() ) );
connect( pushButtondeng, SIGNAL( clicked() ), this, SLOT( jieguo() ) );
connect( pushButtonshan, SIGNAL( clicked() ), this, SLOT( tuige() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
jisuan::~jisuan()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void jisuan::languageChange()
{
setCaption( tr( "jisuan" ) );
pushButtonjia->setText( tr( "+" ) );
pushButtonjian->setText( tr( "-" ) );
pushButtonchen->setText( tr( "*" ) );
pushButtonchu->setText( tr( "/" ) );
pushButton1->setText( tr( "1" ) );
pushButton2->setText( tr( "2" ) );
pushButton3->setText( tr( "3" ) );
pushButton4->setText( tr( "4" ) );
pushButton5->setText( tr( "5" ) );
pushButton6->setText( tr( "6" ) );
pushButton7->setText( tr( "7" ) );
pushButton8->setText( tr( "8" ) );
pushButton9->setText( tr( "9" ) );
pushButton0->setText( tr( "0" ) );
pushButtondeng->setText( tr( "=" ) );
pushButtonshan->setText( tr( "c" ) );
pushButton121->setText( tr( "." ) );
pushButton18->setText( trUtf8( "鲍日光-08" ) );
}
rg.rar_QT calculator_qt计算器_rg.rar
版权申诉
45 浏览量
2022-09-21
06:23:14
上传
评论
收藏 310KB RAR 举报
Kinonoyomeo
- 粉丝: 75
- 资源: 1万+
最新资源
- 通道处理过程的模拟通常涉及对通道处理机制的理解与实现.txt
- Flume进阶-自定义拦截器jar包
- Dubins曲线算法讲解和在运动规划中的使用.pdf
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.dta
- 上市公司-股票性质数据-工具变量(民企、国企、央企)2003-2022年.xlsx
- Reeds+Shepp曲线算法讲解和实现.pdf
- 毕业设计基于SpringBoot+MyBatisPlus+MySQL+Vue的外卖配送信息系统源代码+数据库
- 词向量(Word Embeddings)是自然语言处理(NLP)领域的一种重要技术.txt
- Surfer,线性函数
- MyBatis 的动态 SQL 是其核心特性之一.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0