2017.8.17 开始了我的QT 学习。
2017-08-17 15:37
155 查看
Ctrl+H ........................................................................水平布局
Ctrl+L ........................................................................垂直布局
Alt+Shift+r....................................................................预览
this->setMaximumSize(393,171)..................................................设置为固定大小
this->setMinimumSize(392,171)..................................................设置为固定大小
int second=ui->secondLineEdit->text().toInt();.................................获得secondLineEdit的数值
ui->resultLineEdit->setText(QString::number(result));..........................将数值显示在resultLineEdit
item ..........................................................................项
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
需要先添加 #include <QMessageBox>
QMessageBox::information(this,"Result:",QString::number(result));..............消息对话提示框
QMessageBox::warning(this,"Error Message","Second Can't be Zero!!");...........消息对话提示框
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>
经过一天的学习,对QT有了一定的了解。感觉到QT 的开发环境确实比较方面容易一点。
自己编写了一个四则运算计算器,要是在有一点点Photoshop的功底,对界面进行一定程度上的美观,那就更美滋滋了。
期待明天的QT上位机学习之旅。
2017.8.17
15.46
By duoduo
Ctrl+L ........................................................................垂直布局
Alt+Shift+r....................................................................预览
this->setMaximumSize(393,171)..................................................设置为固定大小
this->setMinimumSize(392,171)..................................................设置为固定大小
int second=ui->secondLineEdit->text().toInt();.................................获得secondLineEdit的数值
ui->resultLineEdit->setText(QString::number(result));..........................将数值显示在resultLineEdit
item ..........................................................................项
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
需要先添加 #include <QMessageBox>
QMessageBox::information(this,"Result:",QString::number(result));..............消息对话提示框
QMessageBox::warning(this,"Error Message","Second Can't be Zero!!");...........消息对话提示框
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>
经过一天的学习,对QT有了一定的了解。感觉到QT 的开发环境确实比较方面容易一点。
自己编写了一个四则运算计算器,要是在有一点点Photoshop的功底,对界面进行一定程度上的美观,那就更美滋滋了。
期待明天的QT上位机学习之旅。
2017.8.17
15.46
By duoduo