Commit b894e68d by YuuXii

Update 第一章代码01

parent 0be87d98
1.dialog.cpp
1.dialog.cpp
......@@ -26,3 +26,31 @@ void Dialog::on_pushButton_clicked()
double area=valueInt*valueInt*PI;
ui->label_2->setText(tempStr.setNum(area));
}
2.dialog.h
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
QT_BEGIN_NAMESPACE
namespace Ui { class Dialog; }
QT_END_NAMESPACE
class Dialog : public QDialog
{
Q_OBJECT
public:
Dialog(QWidget *parent = nullptr);
~Dialog();
private slots:
void on_pushButton_clicked();
private:
Ui::Dialog *ui;
};
#endif // DIALOG_H
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment