Qt making calculator
2016-08-23
1 0 0
4.0
Other
Earn points
Calculator made with Qt tools, interface #include
#include
#include
#include
#include
using namespace std;
class mywidget:pulic QWidget{
Q_OBJECT
private:
QString Q1,Q2;//Q1 and Q2 is the number used for the save operation
QString Q3;//holds operands
char c; C to hold the operator ...
QLineEdit*lineEdit;
The first row of buttons
QPushButton *bMAdd; Save data button
QPushButton *bMSub; Read data button
QPushButton *bClear; Clear the screen buttons
QPushButton *bAdd; The ' + ' button
Second row of buttons
QPushButton *b1; '1' button
QPushButton *b2; '2' button
QPushButton *b3; '3' button
QPushButton *bSub; '-' Button
Third row button
QPushButton *b4; '4' button
QPushButton *b5; '5' button
QPushButton *b6; '6' button
QPushButton *bMul; '*' Button
Line buttons
QPushButton *b7; '7' button
QPushBu
#include
#include
#include
#include
using namespace std;
class mywidget:pulic QWidget{
Q_OBJECT
private:
QString Q1,Q2;//Q1 and Q2 is the number used for the save operation
QString Q3;//holds operands
char c; C to hold the operator ...
QLineEdit*lineEdit;
The first row of buttons
QPushButton *bMAdd; Save data button
QPushButton *bMSub; Read data button
QPushButton *bClear; Clear the screen buttons
QPushButton *bAdd; The ' + ' button
Second row of buttons
QPushButton *b1; '1' button
QPushButton *b2; '2' button
QPushButton *b3; '3' button
QPushButton *bSub; '-' Button
Third row button
QPushButton *b4; '4' button
QPushButton *b5; '5' button
QPushButton *b6; '6' button
QPushButton *bMul; '*' Button
Line buttons
QPushButton *b7; '7' button
QPushBu
c++
qt
计算器
制作
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment