提交 fb26a325 编写于 作者: 花狗Fdog's avatar 花狗Fdog

添加了切换歌曲 暂停 音量 倍速调节

上级 3c80ce20
......@@ -148,28 +148,39 @@ compiler_rcc_clean:
debug\qrc_lib.cpp: lib.qrc \
..\..\QT\5.10.0\msvc2015_64\bin\rcc.exe \
C:\Users\fdog\Desktop\image-20200806113923681.png \
lib\xuanxiang.png \
lib\lishijilu.png \
lib\b.png \
lib\guanbi.png \
lib\sousuo.png \
lib\shipin.png \
lib\shangyiqu.png \
lib\xunhuan.png \
lib\zuixiao.png \
lib\timg.jpg \
lib\13.jpg \
lib\ci-copy.png \
lib\1zantingtingzhi.png \
lib\9.jpg \
lib\zuidahua.png \
lib\guanbi.png \
lib\love.png \
lib\shengyin.png \
lib\zanting.png \
lib\sousuo.png \
lib\bendi.png \
lib\pifu.png \
lib\timg.jpg \
lib\touxiang.png \
lib\xuanxiang1.png \
lib\timg2.png \
lib\8.jpg \
lib\shangyiqu.png \
lib\11.jpg \
lib\xuanxiang.png \
lib\touxiang.png \
lib\10.jpg \
lib\love.png \
lib\6.jpg \
lib\zuixiao.png \
lib\1bofang.png \
lib\shezhi.png \
lib\lishijilu.png \
lib\ci-copy.png \
lib\su.png \
lib\xuanxiang1.png \
lib\5.jpg \
lib\4.jpg \
lib\jingyin.png \
lib\bendi.png \
lib\zanting.png \
lib\stop.png
D:\QT\5.10.0\msvc2015_64\bin\rcc.exe -name lib lib.qrc -o debug\qrc_lib.cpp
......@@ -664,6 +675,7 @@ debug\mainwindow.obj: mainwindow.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qpushbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qabstractbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QSlider \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QSpacerItem \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QToolBox \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qtoolbox.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QToolButton \
......
......@@ -148,28 +148,39 @@ compiler_rcc_clean:
release\qrc_lib.cpp: lib.qrc \
..\..\QT\5.10.0\msvc2015_64\bin\rcc.exe \
C:\Users\fdog\Desktop\image-20200806113923681.png \
lib\xuanxiang.png \
lib\lishijilu.png \
lib\b.png \
lib\guanbi.png \
lib\sousuo.png \
lib\shipin.png \
lib\shangyiqu.png \
lib\xunhuan.png \
lib\zuixiao.png \
lib\timg.jpg \
lib\13.jpg \
lib\ci-copy.png \
lib\1zantingtingzhi.png \
lib\9.jpg \
lib\zuidahua.png \
lib\guanbi.png \
lib\love.png \
lib\shengyin.png \
lib\zanting.png \
lib\sousuo.png \
lib\bendi.png \
lib\pifu.png \
lib\timg.jpg \
lib\touxiang.png \
lib\xuanxiang1.png \
lib\timg2.png \
lib\8.jpg \
lib\shangyiqu.png \
lib\11.jpg \
lib\xuanxiang.png \
lib\touxiang.png \
lib\10.jpg \
lib\love.png \
lib\6.jpg \
lib\zuixiao.png \
lib\1bofang.png \
lib\shezhi.png \
lib\lishijilu.png \
lib\ci-copy.png \
lib\su.png \
lib\xuanxiang1.png \
lib\5.jpg \
lib\4.jpg \
lib\jingyin.png \
lib\bendi.png \
lib\zanting.png \
lib\stop.png
D:\QT\5.10.0\msvc2015_64\bin\rcc.exe -name lib lib.qrc -o release\qrc_lib.cpp
......@@ -664,6 +675,7 @@ release\mainwindow.obj: mainwindow.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qpushbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qabstractbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QSlider \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QSpacerItem \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QToolBox \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qtoolbox.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QToolButton \
......
无法预览此类型文件
......@@ -21,8 +21,8 @@ QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[14];
char stringdata0[230];
QByteArrayData data[19];
char stringdata0[350];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
......@@ -44,7 +44,12 @@ QT_MOC_LITERAL(9, 120, 8), // "duration"
QT_MOC_LITERAL(10, 129, 17), // "onPositionChanged"
QT_MOC_LITERAL(11, 147, 34), // "on_horizontalSlider_sliderRel..."
QT_MOC_LITERAL(12, 182, 23), // "on_pushButton_3_clicked"
QT_MOC_LITERAL(13, 206, 23) // "on_pushButton_1_clicked"
QT_MOC_LITERAL(13, 206, 23), // "on_pushButton_1_clicked"
QT_MOC_LITERAL(14, 230, 23), // "on_pushButton_2_clicked"
QT_MOC_LITERAL(15, 254, 34), // "on_horizontalSlider_2_valueCh..."
QT_MOC_LITERAL(16, 289, 5), // "value"
QT_MOC_LITERAL(17, 295, 23), // "on_pushButton_5_clicked"
QT_MOC_LITERAL(18, 319, 30) // "on_verticalSlider_valueChanged"
},
"MainWindow\0on_pushButton_clicked\0\0"
......@@ -52,7 +57,11 @@ QT_MOC_LITERAL(13, 206, 23) // "on_pushButton_1_clicked"
"state\0onPlaylistChanged\0position\0"
"onDurationChanged\0duration\0onPositionChanged\0"
"on_horizontalSlider_sliderReleased\0"
"on_pushButton_3_clicked\0on_pushButton_1_clicked"
"on_pushButton_3_clicked\0on_pushButton_1_clicked\0"
"on_pushButton_2_clicked\0"
"on_horizontalSlider_2_valueChanged\0"
"value\0on_pushButton_5_clicked\0"
"on_verticalSlider_valueChanged"
};
#undef QT_MOC_LITERAL
......@@ -62,7 +71,7 @@ static const uint qt_meta_data_MainWindow[] = {
7, // revision
0, // classname
0, 0, // classinfo
8, 14, // methods
12, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
......@@ -70,14 +79,18 @@ static const uint qt_meta_data_MainWindow[] = {
0, // signalCount
// slots: name, argc, parameters, tag, flags
1, 0, 54, 2, 0x08 /* Private */,
3, 1, 55, 2, 0x08 /* Private */,
6, 1, 58, 2, 0x08 /* Private */,
8, 1, 61, 2, 0x08 /* Private */,
10, 1, 64, 2, 0x08 /* Private */,
11, 0, 67, 2, 0x08 /* Private */,
12, 0, 68, 2, 0x08 /* Private */,
13, 0, 69, 2, 0x08 /* Private */,
1, 0, 74, 2, 0x08 /* Private */,
3, 1, 75, 2, 0x08 /* Private */,
6, 1, 78, 2, 0x08 /* Private */,
8, 1, 81, 2, 0x08 /* Private */,
10, 1, 84, 2, 0x08 /* Private */,
11, 0, 87, 2, 0x08 /* Private */,
12, 0, 88, 2, 0x08 /* Private */,
13, 0, 89, 2, 0x08 /* Private */,
14, 0, 90, 2, 0x08 /* Private */,
15, 1, 91, 2, 0x08 /* Private */,
17, 0, 94, 2, 0x08 /* Private */,
18, 1, 95, 2, 0x08 /* Private */,
// slots: parameters
QMetaType::Void,
......@@ -88,6 +101,10 @@ static const uint qt_meta_data_MainWindow[] = {
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 16,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 16,
0 // eod
};
......@@ -106,6 +123,10 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
case 5: _t->on_horizontalSlider_sliderReleased(); break;
case 6: _t->on_pushButton_3_clicked(); break;
case 7: _t->on_pushButton_1_clicked(); break;
case 8: _t->on_pushButton_2_clicked(); break;
case 9: _t->on_horizontalSlider_2_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
case 10: _t->on_pushButton_5_clicked(); break;
case 11: _t->on_verticalSlider_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
......@@ -147,13 +168,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 8)
if (_id < 12)
qt_static_metacall(this, _c, _id, _a);
_id -= 8;
_id -= 12;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 8)
if (_id < 12)
qt_static_metacall(this, _c, _id, _a);
_id -= 8;
_id -= 12;
}
return _id;
}
......
此差异已折叠。
无法预览此类型文件
......@@ -36,5 +36,8 @@
<file>lib/10.jpg</file>
<file>lib/11.jpg</file>
<file>lib/13.jpg</file>
<file>lib/1bofang.png</file>
<file>lib/1zantingtingzhi.png</file>
<file>lib/jingyin.png</file>
</qresource>
</RCC>
......@@ -72,21 +72,12 @@ void MainWindow::on_pushButton_clicked()
playlist->addMedia(QUrl::fromLocalFile(aFile));
QFileInfo fileInfo(aFile);
ui->listWidget->addItem(fileInfo.fileName());
QList<QLabel*> labelList = ui->toolBox->findChildren<QLabel*>();
for(int i = 0; i < labelList.size(); i++)
{
ui->label_12 = labelList.at(i);
ui->label_12->setText(QString::number(i));
}
ui->plainTextEdit->appendPlainText(fileList.at(i));
}
if(player->state()!=QMediaPlayer::PlayingState)
{
playlist->setCurrentIndex(sum_);
playlist->setCurrentIndex(M_Value);
}
player->play();
}
......@@ -134,28 +125,78 @@ void MainWindow::on_horizontalSlider_sliderReleased()
void MainWindow::on_pushButton_3_clicked()
{
sum = playlist->mediaCount();//总数
if(sum_ == sum)
M_Amount = playlist->mediaCount();//总数
if(M_Value == M_Amount)
{
sum_ =0;
playlist->setCurrentIndex(sum_);
player->play();
M_Value =0;
playlist->setCurrentIndex(M_Value);
if(m_IsPause==true)
{
player->play();
}
return;
}
playlist->setCurrentIndex(++sum_);
player->play();
playlist->setCurrentIndex(++M_Value);
if(m_IsPause==true)
{
player->play();
}
}
void MainWindow::on_pushButton_1_clicked()
{
sum = playlist->mediaCount();
if(sum_ == 0)
M_Amount = playlist->mediaCount();
if(M_Value == 0)
{
M_Value=M_Amount;
playlist->setCurrentIndex(M_Value);
if(m_IsPause==true)
{
player->play();
}
return;
}
playlist->setCurrentIndex(--M_Value);
if(m_IsPause==true)
{
sum_=sum;
playlist->setCurrentIndex(sum_);
player->play();
}
}
void MainWindow::on_pushButton_2_clicked()
{
if(m_IsPause==true)//false 为播放
{
ui->pushButton_2->setStyleSheet("border-image: url(:/lib/1bofang.png);");
m_IsPause = false;
player->pause();
return;
}
playlist->setCurrentIndex(--sum_);
m_IsPause = true;
ui->pushButton_2->setStyleSheet("border-image: url(:/lib/1zantingtingzhi.png);");
player->play();
}
void MainWindow::on_horizontalSlider_2_valueChanged(int value)
{
player->setVolume(value);
}
void MainWindow::on_pushButton_5_clicked()
{
if(m_Volume ==true)
{
m_Volume = false;
ui->pushButton_5->setStyleSheet("border-image: url(:/lib/shengyin.png);");
player->setVolume(ui->horizontalSlider_2->value());
return;
}
m_Volume = true;
ui->pushButton_5->setStyleSheet("border-image: url(:/lib/jingyin.png);");
player->setVolume(0);
}
void MainWindow::on_verticalSlider_valueChanged(int value)
{
player->setPlaybackRate(value);
}
......@@ -17,9 +17,11 @@ private:
QString positionTime;
bool m_bIsWindowMoveable = false;
bool m_IsPause = false;
bool m_Volume = false;
QPoint m_point;
int sum=0;
int sum_=0;
int M_Amount=0; //总数
int M_Value=0; //当前
public:
explicit MainWindow(QWidget *parent = 0);
......@@ -40,6 +42,14 @@ private slots:
void on_pushButton_1_clicked();
void on_pushButton_2_clicked();
void on_horizontalSlider_2_valueChanged(int value);
void on_pushButton_5_clicked();
void on_verticalSlider_valueChanged(int value);
private:
Ui::MainWindow *ui;
};
......
......@@ -225,10 +225,15 @@ border-image: url(:/lib/5.jpg);
<rect>
<x>-1</x>
<y>61</y>
<width>1101</width>
<width>1181</width>
<height>641</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 255, 255,70);</string>
</property>
......@@ -368,7 +373,7 @@ border-image: url(:/lib/5.jpg);
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/stop.png);</string>
<string notr="true">border-image: url(:/lib/1zantingtingzhi.png);</string>
</property>
<property name="text">
<string/>
......@@ -450,9 +455,9 @@ color: rgb(255, 255, 255);</string>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>209</x>
<x>219</x>
<y>61</y>
<width>881</width>
<width>871</width>
<height>561</height>
</rect>
</property>
......@@ -468,41 +473,6 @@ border-image: url(:/lib/timg (6).jpg);
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QLineEdit" name="lineEdit">
<property name="geometry">
<rect>
<x>110</x>
<y>60</y>
<width>151</width>
<height>36</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font:20px;
background: url(:/C:/Users/fdog/Desktop/image-20200806113923681.png) no-repeat -10px -10px;
border-radius:5px;
border: 1px solid #999999;</string>
</property>
<property name="text">
<string>2506897252</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>340</x>
<y>50</y>
<width>141</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
......@@ -526,7 +496,7 @@ border: 1px solid #999999;</string>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>20</x>
<x>40</x>
<y>640</y>
<width>181</width>
<height>41</height>
......@@ -614,10 +584,10 @@ border-color:rgb(163, 163, 163);</string>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>750</x>
<y>13</y>
<width>35</width>
<height>35</height>
<x>752</x>
<y>15</y>
<width>32</width>
<height>32</height>
</rect>
</property>
<property name="styleSheet">
......@@ -637,7 +607,7 @@ border-color:rgb(163, 163, 163);</string>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 12pt &quot;Adobe Gothic Std B&quot;;
<string notr="true">font: 75 11pt &quot;Adobe Gothic Std B&quot;;
color: rgb(255, 255, 255);</string>
</property>
......@@ -651,7 +621,7 @@ color: rgb(255, 255, 255);</string>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>190</x>
<x>240</x>
<y>650</y>
<width>20</width>
<height>20</height>
......@@ -659,7 +629,6 @@ color: rgb(255, 255, 255);</string>
</property>
<property name="styleSheet">
<string notr="true">
border-image: url(:/lib/su.png);
border-image: url(:/lib/love.png);</string>
</property>
<property name="text">
......@@ -670,14 +639,14 @@ border-image: url(:/lib/love.png);</string>
<property name="geometry">
<rect>
<x>0</x>
<y>60</y>
<y>90</y>
<width>209</width>
<height>561</height>
<height>431</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>15</pointsize>
<pointsize>11</pointsize>
<weight>75</weight>
<bold>true</bold>
<underline>false</underline>
......@@ -698,7 +667,7 @@ color: rgb(85, 170, 255);
background-color: rgba(0, 255, 255,00);
}
*
QWidget
{
background-color: rgba(255, 255, 255, 0);
}</string>
......@@ -713,7 +682,7 @@ background-color: rgba(255, 255, 255, 0);
<number>0</number>
</property>
<property name="tabSpacing">
<number>11</number>
<number>21</number>
</property>
<widget class="QWidget" name="page_3">
<attribute name="label">
......@@ -745,6 +714,28 @@ background-color: rgba(255, 255, 255, 0);
<string>添加音频</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit">
<property name="geometry">
<rect>
<x>20</x>
<y>70</y>
<width>151</width>
<height>36</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font:20px;
background: url(:/C:/Users/fdog/Desktop/image-20200806113923681.png) no-repeat -10px -10px;
border-radius:5px;
border: 1px solid #999999;</string>
</property>
<property name="text">
<string>2506897252</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</widget>
<widget class="QWidget" name="page">
<property name="geometry">
......@@ -752,7 +743,7 @@ background-color: rgba(255, 255, 255, 0);
<x>0</x>
<y>0</y>
<width>209</width>
<height>444</height>
<height>299</height>
</rect>
</property>
<attribute name="label">
......@@ -767,8 +758,53 @@ background-color: rgba(255, 255, 255, 0);
<height>481</height>
</rect>
</property>
<property name="font">
<font>
<family>宋体</family>
<pointsize>9</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
<string notr="true">font: 9pt &quot;宋体&quot;;</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="lineWidth">
<number>3</number>
</property>
<property name="midLineWidth">
<number>0</number>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="autoScrollMargin">
<number>15</number>
</property>
<property name="tabKeyNavigation">
<bool>false</bool>
</property>
<property name="showDropIndicator" stdset="0">
<bool>true</bool>
</property>
<property name="modelColumn">
<number>0</number>
</property>
<property name="batchSize">
<number>100</number>
</property>
</widget>
</widget>
......@@ -778,7 +814,7 @@ background-color: rgba(255, 255, 255, 0);
<x>0</x>
<y>0</y>
<width>209</width>
<height>444</height>
<height>299</height>
</rect>
</property>
<attribute name="label">
......@@ -797,11 +833,30 @@ background-color: rgba(255, 255, 255, 0);
<string notr="true">background-color: rgba(255, 255, 255, 0);</string>
</property>
<property name="plainText">
<string>你号试试</string>
<string/>
</property>
</widget>
</widget>
</widget>
<widget class="QSlider" name="verticalSlider">
<property name="geometry">
<rect>
<x>1060</x>
<y>630</y>
<width>16</width>
<height>61</height>
</rect>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>3</number>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
<zorder>label_3</zorder>
<zorder>label_6</zorder>
<zorder>frame_4</zorder>
......@@ -819,6 +874,7 @@ background-color: rgba(255, 255, 255, 0);
<zorder>label_9</zorder>
<zorder>label_11</zorder>
<zorder>toolBox</zorder>
<zorder>verticalSlider</zorder>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
......
......@@ -57,8 +57,6 @@ public:
QSlider *horizontalSlider;
QLabel *label;
QFrame *frame;
QLineEdit *lineEdit;
QLabel *label_12;
QLabel *label_4;
QLabel *label_2;
QLabel *label_5;
......@@ -72,10 +70,12 @@ public:
QWidget *page_3;
QPushButton *pushButton_6;
QPushButton *pushButton;
QLineEdit *lineEdit;
QWidget *page;
QListWidget *listWidget;
QWidget *page_2;
QPlainTextEdit *plainTextEdit;
QSlider *verticalSlider;
void setupUi(QMainWindow *MainWindow)
{
......@@ -162,7 +162,10 @@ public:
label_3->setStyleSheet(QStringLiteral("background-color: rgba(0, 255, 255,50);"));
label_6 = new QLabel(centralWidget);
label_6->setObjectName(QStringLiteral("label_6"));
label_6->setGeometry(QRect(-1, 61, 1101, 641));
label_6->setGeometry(QRect(-1, 61, 1181, 641));
QFont font;
font.setPointSize(9);
label_6->setFont(font);
label_6->setStyleSheet(QStringLiteral("background-color: rgba(0, 255, 255,70);"));
frame_2 = new QFrame(centralWidget);
frame_2->setObjectName(QStringLiteral("frame_2"));
......@@ -197,7 +200,7 @@ public:
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
pushButton_2->setGeometry(QRect(210, 6, 50, 50));
pushButton_2->setMinimumSize(QSize(50, 50));
pushButton_2->setStyleSheet(QStringLiteral("border-image: url(:/lib/stop.png);"));
pushButton_2->setStyleSheet(QStringLiteral("border-image: url(:/lib/1zantingtingzhi.png);"));
horizontalSlider = new QSlider(centralWidget);
horizontalSlider->setObjectName(QStringLiteral("horizontalSlider"));
horizontalSlider->setEnabled(true);
......@@ -220,24 +223,13 @@ public:
label->setIndent(-1);
frame = new QFrame(centralWidget);
frame->setObjectName(QStringLiteral("frame"));
frame->setGeometry(QRect(209, 61, 881, 561));
frame->setGeometry(QRect(219, 61, 871, 561));
frame->setStyleSheet(QLatin1String("#frame\n"
"{\n"
"border-image: url(:/lib/timg (6).jpg);\n"
"}"));
frame->setFrameShape(QFrame::StyledPanel);
frame->setFrameShadow(QFrame::Raised);
lineEdit = new QLineEdit(frame);
lineEdit->setObjectName(QStringLiteral("lineEdit"));
lineEdit->setGeometry(QRect(110, 60, 151, 36));
lineEdit->setStyleSheet(QLatin1String("font:20px;\n"
"background: url(:/C:/Users/fdog/Desktop/image-20200806113923681.png) no-repeat -10px -10px;\n"
"border-radius:5px;\n"
"border: 1px solid #999999;"));
lineEdit->setAlignment(Qt::AlignCenter);
label_12 = new QLabel(frame);
label_12->setObjectName(QStringLiteral("label_12"));
label_12->setGeometry(QRect(340, 50, 141, 31));
label_4 = new QLabel(centralWidget);
label_4->setObjectName(QStringLiteral("label_4"));
label_4->setGeometry(QRect(14, 3, 181, 53));
......@@ -245,7 +237,7 @@ public:
label_4->setAlignment(Qt::AlignCenter);
label_2 = new QLabel(centralWidget);
label_2->setObjectName(QStringLiteral("label_2"));
label_2->setGeometry(QRect(20, 640, 181, 41));
label_2->setGeometry(QRect(40, 640, 181, 41));
label_2->setStyleSheet(QLatin1String("font: 75 12pt \"Adobe Gothic Std B\";\n"
"\n"
"color: rgb(255, 255, 255);"));
......@@ -273,31 +265,30 @@ public:
pushButton_7->setStyleSheet(QStringLiteral("border-image: url(:/lib/sousuo.png);"));
label_8 = new QLabel(centralWidget);
label_8->setObjectName(QStringLiteral("label_8"));
label_8->setGeometry(QRect(750, 13, 35, 35));
label_8->setGeometry(QRect(752, 15, 32, 32));
label_8->setStyleSheet(QStringLiteral("border-image: url(:/lib/touxiang.png);"));
label_9 = new QLabel(centralWidget);
label_9->setObjectName(QStringLiteral("label_9"));
label_9->setGeometry(QRect(790, 20, 81, 21));
label_9->setStyleSheet(QLatin1String("font: 75 12pt \"Adobe Gothic Std B\";\n"
label_9->setStyleSheet(QLatin1String("font: 75 11pt \"Adobe Gothic Std B\";\n"
"\n"
"color: rgb(255, 255, 255);"));
label_9->setAlignment(Qt::AlignCenter);
label_11 = new QLabel(centralWidget);
label_11->setObjectName(QStringLiteral("label_11"));
label_11->setGeometry(QRect(190, 650, 20, 20));
label_11->setGeometry(QRect(240, 650, 20, 20));
label_11->setStyleSheet(QLatin1String("\n"
"border-image: url(:/lib/su.png);\n"
"border-image: url(:/lib/love.png);"));
toolBox = new QToolBox(centralWidget);
toolBox->setObjectName(QStringLiteral("toolBox"));
toolBox->setGeometry(QRect(0, 60, 209, 561));
QFont font;
font.setPointSize(15);
font.setBold(true);
font.setUnderline(false);
font.setWeight(75);
font.setKerning(true);
toolBox->setFont(font);
toolBox->setGeometry(QRect(0, 90, 209, 431));
QFont font1;
font1.setPointSize(11);
font1.setBold(true);
font1.setUnderline(false);
font1.setWeight(75);
font1.setKerning(true);
toolBox->setFont(font1);
toolBox->setStyleSheet(QLatin1String("\n"
"#toolBox::tab\n"
"{\n"
......@@ -311,7 +302,7 @@ public:
"background-color: rgba(0, 255, 255,00);\n"
"}\n"
"\n"
"*\n"
"QWidget\n"
"{\n"
"background-color: rgba(255, 255, 255, 0);\n"
"}"));
......@@ -325,23 +316,56 @@ public:
pushButton = new QPushButton(page_3);
pushButton->setObjectName(QStringLiteral("pushButton"));
pushButton->setGeometry(QRect(20, 0, 161, 31));
lineEdit = new QLineEdit(page_3);
lineEdit->setObjectName(QStringLiteral("lineEdit"));
lineEdit->setGeometry(QRect(20, 70, 151, 36));
lineEdit->setStyleSheet(QLatin1String("font:20px;\n"
"background: url(:/C:/Users/fdog/Desktop/image-20200806113923681.png) no-repeat -10px -10px;\n"
"border-radius:5px;\n"
"border: 1px solid #999999;"));
lineEdit->setAlignment(Qt::AlignCenter);
toolBox->addItem(page_3, QString::fromUtf8(" \346\267\273\345\212\240\346\226\207\344\273\266"));
page = new QWidget();
page->setObjectName(QStringLiteral("page"));
page->setGeometry(QRect(0, 0, 209, 444));
page->setGeometry(QRect(0, 0, 209, 299));
listWidget = new QListWidget(page);
listWidget->setObjectName(QStringLiteral("listWidget"));
listWidget->setGeometry(QRect(0, 0, 209, 481));
listWidget->setStyleSheet(QStringLiteral(""));
QFont font2;
font2.setFamily(QString::fromUtf8("\345\256\213\344\275\223"));
font2.setPointSize(9);
font2.setBold(false);
font2.setItalic(false);
font2.setWeight(50);
listWidget->setFont(font2);
listWidget->setStyleSheet(QString::fromUtf8("font: 9pt \"\345\256\213\344\275\223\";"));
listWidget->setFrameShape(QFrame::NoFrame);
listWidget->setFrameShadow(QFrame::Plain);
listWidget->setLineWidth(3);
listWidget->setMidLineWidth(0);
listWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
listWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
listWidget->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
listWidget->setAutoScrollMargin(15);
listWidget->setTabKeyNavigation(false);
listWidget->setProperty("showDropIndicator", QVariant(true));
listWidget->setModelColumn(0);
listWidget->setBatchSize(100);
toolBox->addItem(page, QString::fromUtf8(" \346\234\254\345\234\260\346\226\207\344\273\266"));
page_2 = new QWidget();
page_2->setObjectName(QStringLiteral("page_2"));
page_2->setGeometry(QRect(0, 0, 209, 444));
page_2->setGeometry(QRect(0, 0, 209, 299));
plainTextEdit = new QPlainTextEdit(page_2);
plainTextEdit->setObjectName(QStringLiteral("plainTextEdit"));
plainTextEdit->setGeometry(QRect(0, 0, 211, 221));
plainTextEdit->setStyleSheet(QStringLiteral("background-color: rgba(255, 255, 255, 0);"));
toolBox->addItem(page_2, QString::fromUtf8(" \346\234\200\350\277\221\346\222\255\346\224\276"));
verticalSlider = new QSlider(centralWidget);
verticalSlider->setObjectName(QStringLiteral("verticalSlider"));
verticalSlider->setGeometry(QRect(1060, 630, 16, 61));
verticalSlider->setMinimum(1);
verticalSlider->setMaximum(3);
verticalSlider->setOrientation(Qt::Vertical);
MainWindow->setCentralWidget(centralWidget);
label_3->raise();
label_6->raise();
......@@ -360,6 +384,7 @@ public:
label_9->raise();
label_11->raise();
toolBox->raise();
verticalSlider->raise();
retranslateUi(MainWindow);
QObject::connect(toolButton_4, SIGNAL(clicked()), MainWindow, SLOT(close()));
......@@ -367,7 +392,7 @@ public:
QObject::connect(toolButton_3, SIGNAL(clicked()), MainWindow, SLOT(showMaximized()));
toolBox->setCurrentIndex(0);
toolBox->layout()->setSpacing(11);
toolBox->layout()->setSpacing(21);
QMetaObject::connectSlotsByName(MainWindow);
......@@ -389,8 +414,6 @@ public:
pushButton_3->setText(QString());
pushButton_2->setText(QString());
label->setText(QApplication::translate("MainWindow", "6:25/7:52", nullptr));
lineEdit->setText(QApplication::translate("MainWindow", "2506897252", nullptr));
label_12->setText(QApplication::translate("MainWindow", "TextLabel", nullptr));
label_4->setText(QString());
label_2->setText(QApplication::translate("MainWindow", "\351\230\277\346\202\240\346\202\240 - \346\227\247\346\242\246\344\270\200\345\234\272.mp3", nullptr));
label_5->setText(QString());
......@@ -402,9 +425,10 @@ public:
label_11->setText(QString());
pushButton_6->setText(QApplication::translate("MainWindow", "\346\267\273\345\212\240\350\247\206\351\242\221", nullptr));
pushButton->setText(QApplication::translate("MainWindow", "\346\267\273\345\212\240\351\237\263\351\242\221", nullptr));
lineEdit->setText(QApplication::translate("MainWindow", "2506897252", nullptr));
toolBox->setItemText(toolBox->indexOf(page_3), QApplication::translate("MainWindow", " \346\267\273\345\212\240\346\226\207\344\273\266", nullptr));
toolBox->setItemText(toolBox->indexOf(page), QApplication::translate("MainWindow", " \346\234\254\345\234\260\346\226\207\344\273\266", nullptr));
plainTextEdit->setPlainText(QApplication::translate("MainWindow", "\344\275\240\345\217\267\350\257\225\350\257\225", nullptr));
plainTextEdit->setPlainText(QString());
toolBox->setItemText(toolBox->indexOf(page_2), QApplication::translate("MainWindow", " \346\234\200\350\277\221\346\222\255\346\224\276", nullptr));
} // retranslateUi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册