Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
Qt-wangyuting
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
操作系统二组
Qt-wangyuting
Commits
301b7bf8
Commit
301b7bf8
authored
Jan 29, 2021
by
王玉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete dialog.cpp
parent
07bb5c7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
dialog.cpp
+0
-27
No files found.
dialog.cpp
deleted
100644 → 0
View file @
07bb5c7f
#include "dialog.h"
#include "ui_dialog.h"
const
static
double
PI
=
3.1416
;
Dialog
::
Dialog
(
QWidget
*
parent
)
:
QDialog
(
parent
)
,
ui
(
new
Ui
::
Dialog
)
{
ui
->
setupUi
(
this
);
}
Dialog
::~
Dialog
()
{
delete
ui
;
}
void
Dialog
::
on_countBtn_2_clicked
()
{
bool
ok
;
QString
tempStr
;
QString
valueStr
=
ui
->
radiusLineEdit
->
text
();
int
valueInt
=
valueStr
.
toInt
(
&
ok
);
double
area
=
valueInt
*
valueInt
*
PI
;
ui
->
areaLabel_2
->
setText
(
tempStr
.
setNum
(
area
));
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment