Skip to content

Commit

Permalink
完成
Browse files Browse the repository at this point in the history
  • Loading branch information
HuaGouFdog committed Aug 29, 2020
1 parent 925ba99 commit 5ae00d6
Show file tree
Hide file tree
Showing 14 changed files with 4,254 additions and 6,049 deletions.
6 changes: 3 additions & 3 deletions FdpgQtStyleSheet.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.0, 2020-08-23T22:10:15. -->
<!-- Written by QtCreator 4.5.0, 2020-08-29T22:52:24. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -62,7 +62,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.10.0 MSVC2015 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.10.0 MSVC2015 64bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5100.win64_msvc2015_64_kit</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
Expand Down Expand Up @@ -292,7 +292,7 @@
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">FdpgQtStyleSheet.pro</value>
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/FdogProject/FdpgQtStyleSheet</value>
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">D:/FdogProject/build-FdpgQtStyleSheet1-Desktop_Qt_5_10_0_MSVC2015_64bit-Release</value>
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
Expand Down
Binary file modified debug/FdpgQtStyleSheet1.exe
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.ilk
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.pdb
Binary file not shown.
Binary file modified debug/FdpgQtStyleSheet1.vc.pdb
Binary file not shown.
Binary file modified debug/main.obj
Binary file not shown.
Binary file modified debug/mainwindow.obj
Binary file not shown.
159 changes: 82 additions & 77 deletions debug/moc_mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[74];
char stringdata0[2157];
QByteArrayData data[75];
char stringdata0[2183];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
Expand Down Expand Up @@ -104,7 +104,8 @@ QT_MOC_LITERAL(69, 2024, 26), // "on_spinBox_19_valueChanged"
QT_MOC_LITERAL(70, 2051, 25), // "on_radioButton_11_clicked"
QT_MOC_LITERAL(71, 2077, 25), // "on_radioButton_12_clicked"
QT_MOC_LITERAL(72, 2103, 26), // "on_spinBox_21_valueChanged"
QT_MOC_LITERAL(73, 2130, 26) // "on_spinBox_22_valueChanged"
QT_MOC_LITERAL(73, 2130, 26), // "on_spinBox_22_valueChanged"
QT_MOC_LITERAL(74, 2157, 25) // "on_radioButton_13_clicked"

},
"MainWindow\0on_horizontalSlider_valueChanged\0"
Expand Down Expand Up @@ -174,7 +175,8 @@ QT_MOC_LITERAL(73, 2130, 26) // "on_spinBox_22_valueChanged"
"on_radioButton_11_clicked\0"
"on_radioButton_12_clicked\0"
"on_spinBox_21_valueChanged\0"
"on_spinBox_22_valueChanged"
"on_spinBox_22_valueChanged\0"
"on_radioButton_13_clicked"
};
#undef QT_MOC_LITERAL

Expand All @@ -184,82 +186,83 @@ static const uint qt_meta_data_MainWindow[] = {
7, // revision
0, // classname
0, 0, // classinfo
68, 14, // methods
69, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount

// slots: name, argc, parameters, tag, flags
1, 1, 354, 2, 0x08 /* Private */,
4, 1, 357, 2, 0x08 /* Private */,
5, 1, 360, 2, 0x08 /* Private */,
6, 1, 363, 2, 0x08 /* Private */,
7, 1, 366, 2, 0x08 /* Private */,
8, 1, 369, 2, 0x08 /* Private */,
9, 1, 372, 2, 0x08 /* Private */,
10, 1, 375, 2, 0x08 /* Private */,
11, 1, 378, 2, 0x08 /* Private */,
12, 1, 381, 2, 0x08 /* Private */,
13, 1, 384, 2, 0x08 /* Private */,
14, 1, 387, 2, 0x08 /* Private */,
15, 1, 390, 2, 0x08 /* Private */,
17, 1, 393, 2, 0x08 /* Private */,
19, 1, 396, 2, 0x08 /* Private */,
20, 1, 399, 2, 0x08 /* Private */,
21, 1, 402, 2, 0x08 /* Private */,
22, 1, 405, 2, 0x08 /* Private */,
24, 1, 408, 2, 0x08 /* Private */,
25, 1, 411, 2, 0x08 /* Private */,
26, 1, 414, 2, 0x08 /* Private */,
27, 1, 417, 2, 0x08 /* Private */,
28, 1, 420, 2, 0x08 /* Private */,
29, 1, 423, 2, 0x08 /* Private */,
30, 1, 426, 2, 0x08 /* Private */,
31, 1, 429, 2, 0x08 /* Private */,
32, 1, 432, 2, 0x08 /* Private */,
33, 1, 435, 2, 0x08 /* Private */,
34, 1, 438, 2, 0x08 /* Private */,
35, 1, 441, 2, 0x08 /* Private */,
36, 1, 444, 2, 0x08 /* Private */,
37, 1, 447, 2, 0x08 /* Private */,
38, 1, 450, 2, 0x08 /* Private */,
39, 1, 453, 2, 0x08 /* Private */,
40, 1, 456, 2, 0x08 /* Private */,
41, 1, 459, 2, 0x08 /* Private */,
42, 1, 462, 2, 0x08 /* Private */,
43, 1, 465, 2, 0x08 /* Private */,
44, 1, 468, 2, 0x08 /* Private */,
45, 1, 471, 2, 0x08 /* Private */,
46, 1, 474, 2, 0x08 /* Private */,
47, 1, 477, 2, 0x08 /* Private */,
48, 1, 480, 2, 0x08 /* Private */,
49, 1, 483, 2, 0x08 /* Private */,
50, 1, 486, 2, 0x08 /* Private */,
51, 0, 489, 2, 0x08 /* Private */,
52, 0, 490, 2, 0x08 /* Private */,
53, 0, 491, 2, 0x08 /* Private */,
54, 0, 492, 2, 0x08 /* Private */,
55, 0, 493, 2, 0x08 /* Private */,
56, 0, 494, 2, 0x08 /* Private */,
57, 0, 495, 2, 0x08 /* Private */,
58, 0, 496, 2, 0x08 /* Private */,
59, 1, 497, 2, 0x08 /* Private */,
60, 1, 500, 2, 0x08 /* Private */,
61, 1, 503, 2, 0x08 /* Private */,
62, 1, 506, 2, 0x08 /* Private */,
63, 1, 509, 2, 0x08 /* Private */,
64, 1, 512, 2, 0x08 /* Private */,
65, 1, 515, 2, 0x08 /* Private */,
66, 0, 518, 2, 0x08 /* Private */,
67, 1, 519, 2, 0x08 /* Private */,
68, 1, 522, 2, 0x08 /* Private */,
69, 1, 525, 2, 0x08 /* Private */,
70, 0, 528, 2, 0x08 /* Private */,
71, 0, 529, 2, 0x08 /* Private */,
72, 1, 530, 2, 0x08 /* Private */,
73, 1, 533, 2, 0x08 /* Private */,
1, 1, 359, 2, 0x08 /* Private */,
4, 1, 362, 2, 0x08 /* Private */,
5, 1, 365, 2, 0x08 /* Private */,
6, 1, 368, 2, 0x08 /* Private */,
7, 1, 371, 2, 0x08 /* Private */,
8, 1, 374, 2, 0x08 /* Private */,
9, 1, 377, 2, 0x08 /* Private */,
10, 1, 380, 2, 0x08 /* Private */,
11, 1, 383, 2, 0x08 /* Private */,
12, 1, 386, 2, 0x08 /* Private */,
13, 1, 389, 2, 0x08 /* Private */,
14, 1, 392, 2, 0x08 /* Private */,
15, 1, 395, 2, 0x08 /* Private */,
17, 1, 398, 2, 0x08 /* Private */,
19, 1, 401, 2, 0x08 /* Private */,
20, 1, 404, 2, 0x08 /* Private */,
21, 1, 407, 2, 0x08 /* Private */,
22, 1, 410, 2, 0x08 /* Private */,
24, 1, 413, 2, 0x08 /* Private */,
25, 1, 416, 2, 0x08 /* Private */,
26, 1, 419, 2, 0x08 /* Private */,
27, 1, 422, 2, 0x08 /* Private */,
28, 1, 425, 2, 0x08 /* Private */,
29, 1, 428, 2, 0x08 /* Private */,
30, 1, 431, 2, 0x08 /* Private */,
31, 1, 434, 2, 0x08 /* Private */,
32, 1, 437, 2, 0x08 /* Private */,
33, 1, 440, 2, 0x08 /* Private */,
34, 1, 443, 2, 0x08 /* Private */,
35, 1, 446, 2, 0x08 /* Private */,
36, 1, 449, 2, 0x08 /* Private */,
37, 1, 452, 2, 0x08 /* Private */,
38, 1, 455, 2, 0x08 /* Private */,
39, 1, 458, 2, 0x08 /* Private */,
40, 1, 461, 2, 0x08 /* Private */,
41, 1, 464, 2, 0x08 /* Private */,
42, 1, 467, 2, 0x08 /* Private */,
43, 1, 470, 2, 0x08 /* Private */,
44, 1, 473, 2, 0x08 /* Private */,
45, 1, 476, 2, 0x08 /* Private */,
46, 1, 479, 2, 0x08 /* Private */,
47, 1, 482, 2, 0x08 /* Private */,
48, 1, 485, 2, 0x08 /* Private */,
49, 1, 488, 2, 0x08 /* Private */,
50, 1, 491, 2, 0x08 /* Private */,
51, 0, 494, 2, 0x08 /* Private */,
52, 0, 495, 2, 0x08 /* Private */,
53, 0, 496, 2, 0x08 /* Private */,
54, 0, 497, 2, 0x08 /* Private */,
55, 0, 498, 2, 0x08 /* Private */,
56, 0, 499, 2, 0x08 /* Private */,
57, 0, 500, 2, 0x08 /* Private */,
58, 0, 501, 2, 0x08 /* Private */,
59, 1, 502, 2, 0x08 /* Private */,
60, 1, 505, 2, 0x08 /* Private */,
61, 1, 508, 2, 0x08 /* Private */,
62, 1, 511, 2, 0x08 /* Private */,
63, 1, 514, 2, 0x08 /* Private */,
64, 1, 517, 2, 0x08 /* Private */,
65, 1, 520, 2, 0x08 /* Private */,
66, 0, 523, 2, 0x08 /* Private */,
67, 1, 524, 2, 0x08 /* Private */,
68, 1, 527, 2, 0x08 /* Private */,
69, 1, 530, 2, 0x08 /* Private */,
70, 0, 533, 2, 0x08 /* Private */,
71, 0, 534, 2, 0x08 /* Private */,
72, 1, 535, 2, 0x08 /* Private */,
73, 1, 538, 2, 0x08 /* Private */,
74, 0, 541, 2, 0x08 /* Private */,

// slots: parameters
QMetaType::Void, QMetaType::Int, 3,
Expand Down Expand Up @@ -330,6 +333,7 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 18,
QMetaType::Void, QMetaType::Int, 18,
QMetaType::Void,

0 // eod
};
Expand Down Expand Up @@ -408,6 +412,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 65: _t->on_radioButton_12_clicked(); break;
case 66: _t->on_spinBox_21_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 67: _t->on_spinBox_22_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 68: _t->on_radioButton_13_clicked(); break;
default: ;
}
}
Expand Down Expand Up @@ -438,13 +443,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 68)
if (_id < 69)
qt_static_metacall(this, _c, _id, _a);
_id -= 68;
_id -= 69;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 68)
if (_id < 69)
*reinterpret_cast<int*>(_a[0]) = -1;
_id -= 68;
_id -= 69;
}
return _id;
}
Expand Down
Binary file modified debug/moc_mainwindow.obj
Binary file not shown.
30 changes: 14 additions & 16 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->label_79->setMovie(m_movie);
//开始
m_movie->start();
ui->tableWidget->setAlternatingRowColors(true);
}

MainWindow::~MainWindow()
Expand Down Expand Up @@ -88,28 +89,16 @@ void MainWindow::Labelshow()
QString str_26 = QString("width:%1px;").arg(ui->spinBox_18->value());
QString str_27 = QString("spacing:%1px;").arg(ui->spinBox_21->value());
QString str_28 = QString("width:%1px;height:%2px;").arg(ui->spinBox_22->value()).arg(ui->spinBox_22->value());
// QCheckBox
// {
// spacing:5px;
// }
// QCheckBox::indicator
// {

// }
//int control = ui->comboBox_7->currentIndex();
QString str_29 = QString("alternate-background-color:rgba(%1,%2,%3,%4);").arg(ui->horizontalSlider_22->value())
.arg(ui->horizontalSlider_23->value()).arg(ui->horizontalSlider_24->value()).arg(ui->horizontalSlider_25->value());
QString str_30 = QString("gridline-color:rgba(%1,%2,%3,%4);").arg(ui->horizontalSlider_26->value())
.arg(ui->horizontalSlider_27->value()).arg(ui->horizontalSlider_28->value()).arg(ui->horizontalSlider_29->value());
QString s;
switch (control)
{
case 0:
s = str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23;
ui->label->setStyleSheet(s);
// ui->pushButton->setStyleSheet(s);
// ui->lineEdit_13->setStyleSheet(s);
// ui->comboBox_6->setStyleSheet(s);
// ui->spinBox_5->setStyleSheet(s);
// ui->buttonBox->setStyleSheet(s);
// ui->checkBox->setStyleSheet(s);
// ui->radioButton->setStyleSheet(s);
ui->textEdit->setText(s);
break;
case 1:
Expand Down Expand Up @@ -151,6 +140,9 @@ void MainWindow::Labelshow()
ui->textEdit->setText(s);
break;
case 8:
s="QTableWidget{"+str_1+str_2+str_3+str_4+str_5+str_6+str_29+str_30+str_7+"}"+"QHeaderView::section{"+str_4+str_5+str_6+str_11+str_12+"}";
ui->tableWidget->setStyleSheet(s);
ui->textEdit->setText(s);
break;
case 9:
s = "QCheckBox{"+str_1+str_2+str_3+str_4+str_5+str_6+str_7+str_21+str_22+str_23+str_27+"}"+"QCheckBox::indicator{"+str_28+str_11+str_12+"}";
Expand Down Expand Up @@ -573,3 +565,9 @@ void MainWindow::on_spinBox_22_valueChanged(int arg1)
{
Labelshow();
}

void MainWindow::on_radioButton_13_clicked()
{
ui->stackedWidget->setCurrentIndex(8);
control = 8;
}
2 changes: 2 additions & 0 deletions mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ private slots:

void on_spinBox_22_valueChanged(int arg1);

void on_radioButton_13_clicked();

private:
Ui::MainWindow *ui;
};
Expand Down
Loading

0 comments on commit 5ae00d6

Please sign in to comment.