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

重新设计ui界面

上级 3e9b89cf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.0, 2020-08-07T21:58:10. -->
<!-- Written by QtCreator 4.5.0, 2020-08-08T11:44:45. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -148,18 +148,29 @@ 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\stop.png \
lib\zanting.png \
lib\xuanxiang.png \
lib\b.png \
lib\shipin.png \
lib\shangyiqu.png \
lib\timg2.png \
lib\shengyin.png \
lib\xunhuan.png \
lib\shezhi.png \
lib\zuixiao.png \
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\xuanxiang.png \
lib\zuixiao.png
lib\touxiang.png \
lib\xuanxiang1.png \
lib\timg2.png \
lib\shezhi.png \
lib\lishijilu.png \
lib\ci-copy.png \
lib\su.png \
lib\stop.png
D:\QT\5.10.0\msvc2015_64\bin\rcc.exe -name lib lib.qrc -o debug\qrc_lib.cpp
compiler_moc_predefs_make_all: debug\moc_predefs.h
......@@ -299,9 +310,6 @@ debug\moc_mainwindow.cpp: ..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QMainWin
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
mainwindow.h \
debug\moc_predefs.h \
..\..\QT\5.10.0\msvc2015_64\bin\moc.exe
......@@ -459,9 +467,6 @@ debug\main.obj: main.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QApplication \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qapplication.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qcoreapplication.h \
......@@ -599,9 +604,6 @@ debug\mainwindow.obj: mainwindow.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
ui_mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QAction \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qaction.h \
......@@ -662,7 +664,8 @@ 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 \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qtoolbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QWidget \
......
......@@ -148,18 +148,29 @@ 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\stop.png \
lib\zanting.png \
lib\xuanxiang.png \
lib\b.png \
lib\shipin.png \
lib\shangyiqu.png \
lib\timg2.png \
lib\shengyin.png \
lib\xunhuan.png \
lib\shezhi.png \
lib\zuixiao.png \
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\xuanxiang.png \
lib\zuixiao.png
lib\touxiang.png \
lib\xuanxiang1.png \
lib\timg2.png \
lib\shezhi.png \
lib\lishijilu.png \
lib\ci-copy.png \
lib\su.png \
lib\stop.png
D:\QT\5.10.0\msvc2015_64\bin\rcc.exe -name lib lib.qrc -o release\qrc_lib.cpp
compiler_moc_predefs_make_all: release\moc_predefs.h
......@@ -299,9 +310,6 @@ release\moc_mainwindow.cpp: ..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QMainW
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
mainwindow.h \
release\moc_predefs.h \
..\..\QT\5.10.0\msvc2015_64\bin\moc.exe
......@@ -459,9 +467,6 @@ release\main.obj: main.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QApplication \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qapplication.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qcoreapplication.h \
......@@ -599,9 +604,6 @@ release\mainwindow.obj: mainwindow.cpp mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\QMediaPlaylist \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediaplaylist.h \
..\..\QT\5.10.0\msvc2015_64\include\QtMultimedia\qmediabindableinterface.h \
thread.h \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\QThread \
..\..\QT\5.10.0\msvc2015_64\include\QtCore\qthread.h \
ui_mainwindow.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QAction \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qaction.h \
......@@ -662,7 +664,8 @@ 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 \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\qtoolbutton.h \
..\..\QT\5.10.0\msvc2015_64\include\QtWidgets\QWidget \
......
......@@ -17,4 +17,18 @@
第三次提交:
完成基础的添加音乐 音乐时间显示 可调节进度条
\ No newline at end of file
完成基础的添加音乐 音乐时间显示 可调节进度条
第四次:
完成切换歌曲
第五次:
更新了界面,尖叫吧。
<img src="C:\Users\fdog\AppData\Roaming\Typora\typora-user-images\image-20200808225219023.png" alt="image-20200808225219023" style="zoom:80%;" />
\ No newline at end of file
无法预览此类型文件
因为 它太大了无法显示 source diff 。你可以改为 查看blob
无法预览此类型文件
......@@ -13,5 +13,28 @@
<file>lib/timg.jpg</file>
<file>lib/timg2.png</file>
<file>C:/Users/fdog/Desktop/image-20200806113923681.png</file>
<file>lib/timg (1).jpg</file>
<file>lib/timg (6).jpg</file>
<file>lib/b.png</file>
<file>lib/bendi.png</file>
<file>lib/ci-copy.png</file>
<file>lib/lishijilu.png</file>
<file>lib/love.png</file>
<file>lib/pifu.png</file>
<file>lib/shipin.png</file>
<file>lib/sousuo.png</file>
<file>lib/su.png</file>
<file>lib/touxiang.png</file>
<file>lib/xuanxiang1.png</file>
<file>lib/timg (5).jpg</file>
<file>lib/4.jpg</file>
<file>lib/5.jpg</file>
<file>lib/6.jpg</file>
<file>lib/timg (2).jpg</file>
<file>lib/8.jpg</file>
<file>lib/9.jpg</file>
<file>lib/10.jpg</file>
<file>lib/11.jpg</file>
<file>lib/13.jpg</file>
</qresource>
</RCC>
......@@ -8,10 +8,6 @@
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
bool m_bIsWindowMoveable = false;
QPoint m_point;
int sum=0;
int sum_=0;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
......@@ -76,7 +72,17 @@ 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)
{
......@@ -92,7 +98,12 @@ void MainWindow::onStateChanged(QMediaPlayer::State state)
void MainWindow::onPlaylistChanged(int position)
{
ui->listWidget->setCurrentRow(position);
QListWidgetItem * item = ui->listWidget->currentItem();
if(item)
{
ui->label_2->setText(item->text());
}
}
void MainWindow::onDurationChanged(qint64 duration)
......
......@@ -3,7 +3,6 @@
#include <QMainWindow>
#include<QtMultimedia/QMediaPlayer>
#include<QtMultimedia/QMediaPlaylist>
#include"thread.h"
namespace Ui {
class MainWindow;
}
......@@ -12,12 +11,16 @@ class MainWindow : public QMainWindow
{
Q_OBJECT
private:
Thread * p;
QMediaPlayer * player;
QMediaPlaylist * playlist;
QString durationTime;
QString positionTime;
bool m_bIsWindowMoveable = false;
QPoint m_point;
int sum=0;
int sum_=0;
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>406</width>
<height>441</height>
<width>1100</width>
<height>700</height>
</rect>
</property>
<property name="windowTitle">
......@@ -17,270 +17,20 @@
<iconset resource="lib.qrc">
<normaloff>:/lib/timg2.png</normaloff>:/lib/timg2.png</iconset>
</property>
<property name="styleSheet">
<string notr="true">#centralWidget
{
border-image: url(:/lib/5.jpg);
}</string>
</property>
<widget class="QWidget" name="centralWidget">
<widget class="QFrame" name="frame_3">
<property name="geometry">
<rect>
<x>6</x>
<y>280</y>
<width>391</width>
<height>151</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>391</width>
<height>151</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>371</width>
<height>42</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QSlider" name="horizontalSlider">
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>153</width>
<height>0</height>
</size>
</property>
<property name="singleStep">
<number>0</number>
</property>
<property name="pageStep">
<number>16</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="minimumSize">
<size>
<width>83</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QFrame" name="frame_2">
<property name="geometry">
<rect>
<x>10</x>
<y>50</y>
<width>371</width>
<height>91</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_1">
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shangyiqu.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/stop.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shangyiqu.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/xunhuan.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>9</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_5">
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shengyin.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QFrame" name="frame_4">
<property name="geometry">
<rect>
<x>286</x>
<y>-6</y>
<width>131</width>
<height>31</height>
<x>887</x>
<y>4</y>
<width>201</width>
<height>53</height>
</rect>
</property>
<property name="frameShape">
......@@ -290,11 +40,49 @@
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label_10">
<property name="minimumSize">
<size>
<width>23</width>
<height>20</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>23</width>
<height>23</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/pifu.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButton_1">
<property name="minimumSize">
<size>
<width>0</width>
<width>20</width>
<height>20</height>
</size>
</property>
......@@ -318,11 +106,27 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButton_2">
<property name="minimumSize">
<size>
<width>0</width>
<width>20</width>
<height>20</height>
</size>
</property>
......@@ -334,11 +138,27 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButton_3">
<property name="minimumSize">
<size>
<width>0</width>
<width>20</width>
<height>20</height>
</size>
</property>
......@@ -350,11 +170,27 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButton_4">
<property name="minimumSize">
<size>
<width>0</width>
<width>20</width>
<height>20</height>
</size>
</property>
......@@ -368,66 +204,317 @@
</item>
</layout>
</widget>
<widget class="QPlainTextEdit" name="plainTextEdit">
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>11</x>
<y>60</y>
<width>381</width>
<height>71</height>
<x>0</x>
<y>0</y>
<width>1101</width>
<height>61</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 255, 255,50);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>0</x>
<y>30</y>
<width>75</width>
<height>23</height>
<x>-1</x>
<y>61</y>
<width>1101</width>
<height>641</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(0, 255, 255,70);</string>
</property>
<property name="text">
<string>添加音频</string>
<string/>
</property>
</widget>
<widget class="QLabel" name="label_3">
<widget class="QFrame" name="frame_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>421</width>
<height>28</height>
<x>370</x>
<y>643</y>
<width>521</width>
<height>61</height>
</rect>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>63</x>
<y>19</y>
<width>20</width>
<height>20</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/xunhuan.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_2">
<property name="geometry">
<rect>
<x>400</x>
<y>23</y>
<width>100</width>
<height>10</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QPushButton" name="pushButton_5">
<property name="geometry">
<rect>
<x>369</x>
<y>18</y>
<width>21</width>
<height>20</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shengyin.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_1">
<property name="geometry">
<rect>
<x>120</x>
<y>10</y>
<width>40</width>
<height>40</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shangyiqu.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>305</x>
<y>10</y>
<width>40</width>
<height>40</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/shangyiqu.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>210</x>
<y>6</y>
<width>50</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/stop.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</widget>
<widget class="QSlider" name="horizontalSlider">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>310</x>
<y>632</y>
<width>651</width>
<height>20</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>153</width>
<height>0</height>
</size>
</property>
<property name="singleStep">
<number>0</number>
</property>
<property name="pageStep">
<number>16</number>
</property>
<property name="value">
<number>0</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval">
<number>0</number>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>970</x>
<y>630</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>11111111</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(170, 85, 255,100);</string>
<string notr="true">font: 75 11pt &quot;Adobe Gothic Std B&quot;;
color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string/>
<string>6:25/7:52</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="indent">
<number>-1</number>
</property>
</widget>
<widget class="QListWidget" name="listWidget">
<widget class="QFrame" name="frame">
<property name="geometry">
<rect>
<x>11</x>
<y>160</y>
<width>381</width>
<height>61</height>
<x>209</x>
<y>61</y>
<width>881</width>
<height>561</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">#frame
{
border-image: url(:/lib/timg (6).jpg);
}</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<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">
<rect>
<x>2</x>
<y>-1</y>
<width>36</width>
<height>31</height>
<x>14</x>
<y>3</y>
<width>181</width>
<height>53</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/timg2.png);</string>
<string notr="true">border-image: url(:/lib/b.png);</string>
</property>
<property name="text">
<string/>
......@@ -436,53 +523,302 @@
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>20</x>
<y>640</y>
<width>181</width>
<height>41</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 12pt &quot;Adobe Gothic Std B&quot;;
color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>阿悠悠 - 旧梦一场.mp3</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>39</x>
<y>4</y>
<width>61</width>
<x>980</x>
<y>660</y>
<width>30</width>
<height>30</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/ci-copy.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>1020</x>
<y>660</y>
<width>31</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 12pt &quot;Adobe Gothic Std B&quot;;
border-image: url(:/lib/su.png);
color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_2">
<property name="geometry">
<rect>
<x>231</x>
<y>17</y>
<width>211</width>
<height>31</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-radius:8px;
border-width:2px;
border-style:solid ;
border-color:rgb(163, 163, 163);</string>
</property>
<property name="placeholderText">
<string>搜“旧梦一场”</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="geometry">
<rect>
<x>410</x>
<y>20</y>
<width>25</width>
<height>25</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/sousuo.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>750</x>
<y>13</y>
<width>35</width>
<height>35</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">border-image: url(:/lib/touxiang.png);</string>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>790</x>
<y>20</y>
<width>81</width>
<height>21</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">font: 75 12pt &quot;Adobe Gothic Std B&quot;;
color: rgb(255, 255, 255);</string>
</property>
<property name="text">
<string>旭听音乐</string>
<string>登录账号</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit">
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>690</x>
<y>220</y>
<width>221</width>
<height>36</height>
<x>190</x>
<y>650</y>
<width>20</width>
<height>20</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>
<string notr="true">
border-image: url(:/lib/su.png);
border-image: url(:/lib/love.png);</string>
</property>
<property name="text">
<string>2506897252</string>
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</widget>
<widget class="QToolBox" name="toolBox">
<property name="geometry">
<rect>
<x>0</x>
<y>60</y>
<width>209</width>
<height>561</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
<underline>false</underline>
<kerning>true</kerning>
</font>
</property>
<property name="styleSheet">
<string notr="true">
#toolBox::tab
{
color: rgb(85, 170, 255);
background-color: rgba(0, 255, 255,00);
}
#toolBox::tab:selected
{
color: rgb(85, 170, 255);
background-color: rgba(0, 255, 255,00);
}
*
{
background-color: rgba(255, 255, 255, 0);
}</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Plain</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="tabSpacing">
<number>11</number>
</property>
<widget class="QWidget" name="page_3">
<attribute name="label">
<string> 添加文件</string>
</attribute>
<widget class="QPushButton" name="pushButton_6">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>161</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>添加视频</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>20</x>
<y>0</y>
<width>161</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>添加音频</string>
</property>
</widget>
</widget>
<widget class="QWidget" name="page">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>209</width>
<height>444</height>
</rect>
</property>
<attribute name="label">
<string> 本地文件</string>
</attribute>
<widget class="QListWidget" name="listWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>209</width>
<height>481</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
</widget>
</widget>
<widget class="QWidget" name="page_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>209</width>
<height>444</height>
</rect>
</property>
<attribute name="label">
<string> 最近播放</string>
</attribute>
<widget class="QPlainTextEdit" name="plainTextEdit">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>211</width>
<height>221</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);</string>
</property>
<property name="plainText">
<string>你号试试</string>
</property>
</widget>
</widget>
</widget>
<zorder>label_3</zorder>
<zorder>frame_3</zorder>
<zorder>label_6</zorder>
<zorder>frame_4</zorder>
<zorder>plainTextEdit</zorder>
<zorder>pushButton</zorder>
<zorder>listWidget</zorder>
<zorder>frame_2</zorder>
<zorder>horizontalSlider</zorder>
<zorder>label</zorder>
<zorder>frame</zorder>
<zorder>label_4</zorder>
<zorder>label_2</zorder>
<zorder>label_5</zorder>
<zorder>lineEdit</zorder>
<zorder>label_7</zorder>
<zorder>lineEdit_2</zorder>
<zorder>pushButton_7</zorder>
<zorder>label_8</zorder>
<zorder>label_9</zorder>
<zorder>label_11</zorder>
<zorder>toolBox</zorder>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
......@@ -506,5 +842,37 @@ border: 1px solid #999999;</string>
</hint>
</hints>
</connection>
<connection>
<sender>toolButton_2</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>showMinimized()</slot>
<hints>
<hint type="sourcelabel">
<x>1005</x>
<y>25</y>
</hint>
<hint type="destinationlabel">
<x>549</x>
<y>349</y>
</hint>
</hints>
</connection>
<connection>
<sender>toolButton_3</sender>
<signal>clicked()</signal>
<receiver>MainWindow</receiver>
<slot>showMaximized()</slot>
<hints>
<hint type="sourcelabel">
<x>1039</x>
<y>25</y>
</hint>
<hint type="destinationlabel">
<x>549</x>
<y>349</y>
</hint>
</hints>
</connection>
</connections>
</ui>
......@@ -24,6 +24,7 @@
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolBox>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QWidget>
......@@ -33,158 +34,87 @@ class Ui_MainWindow
{
public:
QWidget *centralWidget;
QFrame *frame_3;
QFrame *frame;
QHBoxLayout *horizontalLayout;
QSlider *horizontalSlider;
QLabel *label;
QFrame *frame_2;
QHBoxLayout *horizontalLayout_3;
QSpacerItem *horizontalSpacer_4;
QPushButton *pushButton_1;
QSpacerItem *horizontalSpacer_2;
QPushButton *pushButton_2;
QSpacerItem *horizontalSpacer_3;
QPushButton *pushButton_3;
QSpacerItem *horizontalSpacer_5;
QPushButton *pushButton_4;
QSpacerItem *horizontalSpacer_7;
QPushButton *pushButton_5;
QFrame *frame_4;
QHBoxLayout *horizontalLayout_4;
QLabel *label_10;
QSpacerItem *horizontalSpacer_2;
QToolButton *toolButton_1;
QSpacerItem *horizontalSpacer;
QToolButton *toolButton_2;
QSpacerItem *horizontalSpacer_3;
QToolButton *toolButton_3;
QSpacerItem *horizontalSpacer_4;
QToolButton *toolButton_4;
QPlainTextEdit *plainTextEdit;
QPushButton *pushButton;
QLabel *label_3;
QListWidget *listWidget;
QLabel *label_6;
QFrame *frame_2;
QPushButton *pushButton_4;
QSlider *horizontalSlider_2;
QPushButton *pushButton_5;
QPushButton *pushButton_1;
QPushButton *pushButton_3;
QPushButton *pushButton_2;
QSlider *horizontalSlider;
QLabel *label;
QFrame *frame;
QLineEdit *lineEdit;
QLabel *label_12;
QLabel *label_4;
QLabel *label_2;
QLabel *label_5;
QLineEdit *lineEdit;
QLabel *label_7;
QLineEdit *lineEdit_2;
QPushButton *pushButton_7;
QLabel *label_8;
QLabel *label_9;
QLabel *label_11;
QToolBox *toolBox;
QWidget *page_3;
QPushButton *pushButton_6;
QPushButton *pushButton;
QWidget *page;
QListWidget *listWidget;
QWidget *page_2;
QPlainTextEdit *plainTextEdit;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QStringLiteral("MainWindow"));
MainWindow->resize(406, 441);
MainWindow->resize(1100, 700);
QIcon icon;
icon.addFile(QStringLiteral(":/lib/timg2.png"), QSize(), QIcon::Normal, QIcon::Off);
MainWindow->setWindowIcon(icon);
MainWindow->setStyleSheet(QLatin1String("#centralWidget\n"
"{\n"
"border-image: url(:/lib/5.jpg);\n"
"}"));
centralWidget = new QWidget(MainWindow);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
frame_3 = new QFrame(centralWidget);
frame_3->setObjectName(QStringLiteral("frame_3"));
frame_3->setGeometry(QRect(6, 280, 391, 151));
frame_3->setMinimumSize(QSize(391, 151));
frame_3->setFrameShape(QFrame::StyledPanel);
frame_3->setFrameShadow(QFrame::Raised);
frame = new QFrame(frame_3);
frame->setObjectName(QStringLiteral("frame"));
frame->setGeometry(QRect(10, 10, 371, 42));
frame->setFrameShape(QFrame::StyledPanel);
frame->setFrameShadow(QFrame::Raised);
horizontalLayout = new QHBoxLayout(frame);
horizontalLayout->setSpacing(6);
horizontalLayout->setContentsMargins(11, 11, 11, 11);
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
horizontalSlider = new QSlider(frame);
horizontalSlider->setObjectName(QStringLiteral("horizontalSlider"));
horizontalSlider->setEnabled(true);
horizontalSlider->setMinimumSize(QSize(153, 0));
horizontalSlider->setSingleStep(0);
horizontalSlider->setPageStep(16);
horizontalSlider->setValue(0);
horizontalSlider->setOrientation(Qt::Horizontal);
horizontalSlider->setTickInterval(0);
horizontalLayout->addWidget(horizontalSlider);
label = new QLabel(frame);
label->setObjectName(QStringLiteral("label"));
label->setMinimumSize(QSize(83, 0));
label->setMaximumSize(QSize(30, 16777215));
label->setAlignment(Qt::AlignCenter);
horizontalLayout->addWidget(label);
frame_2 = new QFrame(frame_3);
frame_2->setObjectName(QStringLiteral("frame_2"));
frame_2->setGeometry(QRect(10, 50, 371, 91));
frame_2->setFrameShape(QFrame::StyledPanel);
frame_2->setFrameShadow(QFrame::Raised);
horizontalLayout_3 = new QHBoxLayout(frame_2);
horizontalLayout_3->setSpacing(6);
horizontalLayout_3->setContentsMargins(11, 11, 11, 11);
horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_4);
pushButton_1 = new QPushButton(frame_2);
pushButton_1->setObjectName(QStringLiteral("pushButton_1"));
pushButton_1->setMinimumSize(QSize(40, 40));
pushButton_1->setStyleSheet(QStringLiteral("border-image: url(:/lib/shangyiqu.png);"));
horizontalLayout_3->addWidget(pushButton_1);
horizontalSpacer_2 = new QSpacerItem(30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_2);
pushButton_2 = new QPushButton(frame_2);
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
pushButton_2->setMinimumSize(QSize(50, 50));
pushButton_2->setStyleSheet(QStringLiteral("border-image: url(:/lib/stop.png);"));
horizontalLayout_3->addWidget(pushButton_2);
horizontalSpacer_3 = new QSpacerItem(30, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_3);
pushButton_3 = new QPushButton(frame_2);
pushButton_3->setObjectName(QStringLiteral("pushButton_3"));
pushButton_3->setMinimumSize(QSize(40, 40));
pushButton_3->setStyleSheet(QStringLiteral("border-image: url(:/lib/shangyiqu.png);"));
horizontalLayout_3->addWidget(pushButton_3);
horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_5);
pushButton_4 = new QPushButton(frame_2);
pushButton_4->setObjectName(QStringLiteral("pushButton_4"));
pushButton_4->setMinimumSize(QSize(20, 20));
pushButton_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/xunhuan.png);"));
horizontalLayout_3->addWidget(pushButton_4);
horizontalSpacer_7 = new QSpacerItem(9, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
horizontalLayout_3->addItem(horizontalSpacer_7);
pushButton_5 = new QPushButton(frame_2);
pushButton_5->setObjectName(QStringLiteral("pushButton_5"));
pushButton_5->setMinimumSize(QSize(20, 20));
pushButton_5->setStyleSheet(QStringLiteral("border-image: url(:/lib/shengyin.png);"));
horizontalLayout_3->addWidget(pushButton_5);
frame_4 = new QFrame(centralWidget);
frame_4->setObjectName(QStringLiteral("frame_4"));
frame_4->setGeometry(QRect(286, -6, 131, 31));
frame_4->setGeometry(QRect(887, 4, 201, 53));
frame_4->setFrameShape(QFrame::StyledPanel);
frame_4->setFrameShadow(QFrame::Raised);
horizontalLayout_4 = new QHBoxLayout(frame_4);
horizontalLayout_4->setSpacing(6);
horizontalLayout_4->setContentsMargins(11, 11, 11, 11);
horizontalLayout_4->setObjectName(QStringLiteral("horizontalLayout_4"));
label_10 = new QLabel(frame_4);
label_10->setObjectName(QStringLiteral("label_10"));
label_10->setMinimumSize(QSize(23, 20));
label_10->setMaximumSize(QSize(23, 23));
label_10->setStyleSheet(QStringLiteral("border-image: url(:/lib/pifu.png);"));
horizontalLayout_4->addWidget(label_10);
horizontalSpacer_2 = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
horizontalLayout_4->addItem(horizontalSpacer_2);
toolButton_1 = new QToolButton(frame_4);
toolButton_1->setObjectName(QStringLiteral("toolButton_1"));
toolButton_1->setMinimumSize(QSize(0, 20));
toolButton_1->setMinimumSize(QSize(20, 20));
toolButton_1->setStyleSheet(QStringLiteral("border-image: url(:/lib/xuanxiang.png);"));
toolButton_1->setPopupMode(QToolButton::DelayedPopup);
toolButton_1->setToolButtonStyle(Qt::ToolButtonIconOnly);
......@@ -193,70 +123,252 @@ public:
horizontalLayout_4->addWidget(toolButton_1);
horizontalSpacer = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
horizontalLayout_4->addItem(horizontalSpacer);
toolButton_2 = new QToolButton(frame_4);
toolButton_2->setObjectName(QStringLiteral("toolButton_2"));
toolButton_2->setMinimumSize(QSize(0, 20));
toolButton_2->setMinimumSize(QSize(20, 20));
toolButton_2->setStyleSheet(QStringLiteral("border-image: url(:/lib/zuixiao.png);"));
horizontalLayout_4->addWidget(toolButton_2);
horizontalSpacer_3 = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
horizontalLayout_4->addItem(horizontalSpacer_3);
toolButton_3 = new QToolButton(frame_4);
toolButton_3->setObjectName(QStringLiteral("toolButton_3"));
toolButton_3->setMinimumSize(QSize(0, 20));
toolButton_3->setMinimumSize(QSize(20, 20));
toolButton_3->setStyleSheet(QStringLiteral("border-image: url(:/lib/zuidahua.png);"));
horizontalLayout_4->addWidget(toolButton_3);
horizontalSpacer_4 = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
horizontalLayout_4->addItem(horizontalSpacer_4);
toolButton_4 = new QToolButton(frame_4);
toolButton_4->setObjectName(QStringLiteral("toolButton_4"));
toolButton_4->setMinimumSize(QSize(0, 20));
toolButton_4->setMinimumSize(QSize(20, 20));
toolButton_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/guanbi.png);"));
horizontalLayout_4->addWidget(toolButton_4);
plainTextEdit = new QPlainTextEdit(centralWidget);
plainTextEdit->setObjectName(QStringLiteral("plainTextEdit"));
plainTextEdit->setGeometry(QRect(11, 60, 381, 71));
pushButton = new QPushButton(centralWidget);
pushButton->setObjectName(QStringLiteral("pushButton"));
pushButton->setGeometry(QRect(0, 30, 75, 23));
label_3 = new QLabel(centralWidget);
label_3->setObjectName(QStringLiteral("label_3"));
label_3->setGeometry(QRect(0, 0, 421, 28));
label_3->setStyleSheet(QStringLiteral("background-color: rgba(170, 85, 255,100);"));
listWidget = new QListWidget(centralWidget);
listWidget->setObjectName(QStringLiteral("listWidget"));
listWidget->setGeometry(QRect(11, 160, 381, 61));
label_4 = new QLabel(centralWidget);
label_4->setObjectName(QStringLiteral("label_4"));
label_4->setGeometry(QRect(2, -1, 36, 31));
label_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/timg2.png);"));
label_4->setAlignment(Qt::AlignCenter);
label_5 = new QLabel(centralWidget);
label_5->setObjectName(QStringLiteral("label_5"));
label_5->setGeometry(QRect(39, 4, 61, 21));
label_5->setAlignment(Qt::AlignCenter);
lineEdit = new QLineEdit(centralWidget);
label_3->setGeometry(QRect(0, 0, 1101, 61));
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->setStyleSheet(QStringLiteral("background-color: rgba(0, 255, 255,70);"));
frame_2 = new QFrame(centralWidget);
frame_2->setObjectName(QStringLiteral("frame_2"));
frame_2->setGeometry(QRect(370, 643, 521, 61));
frame_2->setFrameShape(QFrame::StyledPanel);
frame_2->setFrameShadow(QFrame::Raised);
pushButton_4 = new QPushButton(frame_2);
pushButton_4->setObjectName(QStringLiteral("pushButton_4"));
pushButton_4->setGeometry(QRect(63, 19, 20, 20));
pushButton_4->setMinimumSize(QSize(20, 20));
pushButton_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/xunhuan.png);"));
horizontalSlider_2 = new QSlider(frame_2);
horizontalSlider_2->setObjectName(QStringLiteral("horizontalSlider_2"));
horizontalSlider_2->setGeometry(QRect(400, 23, 100, 10));
horizontalSlider_2->setOrientation(Qt::Horizontal);
pushButton_5 = new QPushButton(frame_2);
pushButton_5->setObjectName(QStringLiteral("pushButton_5"));
pushButton_5->setGeometry(QRect(369, 18, 21, 20));
pushButton_5->setMinimumSize(QSize(20, 20));
pushButton_5->setStyleSheet(QStringLiteral("border-image: url(:/lib/shengyin.png);"));
pushButton_1 = new QPushButton(frame_2);
pushButton_1->setObjectName(QStringLiteral("pushButton_1"));
pushButton_1->setGeometry(QRect(120, 10, 40, 40));
pushButton_1->setMinimumSize(QSize(40, 40));
pushButton_1->setStyleSheet(QStringLiteral("border-image: url(:/lib/shangyiqu.png);"));
pushButton_3 = new QPushButton(frame_2);
pushButton_3->setObjectName(QStringLiteral("pushButton_3"));
pushButton_3->setGeometry(QRect(305, 10, 40, 40));
pushButton_3->setMinimumSize(QSize(40, 40));
pushButton_3->setStyleSheet(QStringLiteral("border-image: url(:/lib/shangyiqu.png);"));
pushButton_2 = new QPushButton(frame_2);
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);"));
horizontalSlider = new QSlider(centralWidget);
horizontalSlider->setObjectName(QStringLiteral("horizontalSlider"));
horizontalSlider->setEnabled(true);
horizontalSlider->setGeometry(QRect(310, 632, 651, 20));
horizontalSlider->setMinimumSize(QSize(153, 0));
horizontalSlider->setSingleStep(0);
horizontalSlider->setPageStep(16);
horizontalSlider->setValue(0);
horizontalSlider->setOrientation(Qt::Horizontal);
horizontalSlider->setTickInterval(0);
label = new QLabel(centralWidget);
label->setObjectName(QStringLiteral("label"));
label->setGeometry(QRect(970, 630, 91, 21));
label->setMinimumSize(QSize(0, 0));
label->setMaximumSize(QSize(11111111, 16777215));
label->setStyleSheet(QLatin1String("font: 75 11pt \"Adobe Gothic Std B\";\n"
"color: rgb(255, 255, 255);"));
label->setAlignment(Qt::AlignCenter);
label->setMargin(0);
label->setIndent(-1);
frame = new QFrame(centralWidget);
frame->setObjectName(QStringLiteral("frame"));
frame->setGeometry(QRect(209, 61, 881, 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(690, 220, 221, 36));
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));
label_4->setStyleSheet(QStringLiteral("border-image: url(:/lib/b.png);"));
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->setStyleSheet(QLatin1String("font: 75 12pt \"Adobe Gothic Std B\";\n"
"\n"
"color: rgb(255, 255, 255);"));
label_5 = new QLabel(centralWidget);
label_5->setObjectName(QStringLiteral("label_5"));
label_5->setGeometry(QRect(980, 660, 30, 30));
label_5->setStyleSheet(QStringLiteral("border-image: url(:/lib/ci-copy.png);"));
label_7 = new QLabel(centralWidget);
label_7->setObjectName(QStringLiteral("label_7"));
label_7->setGeometry(QRect(1020, 660, 31, 31));
label_7->setStyleSheet(QLatin1String("font: 75 12pt \"Adobe Gothic Std B\";\n"
"border-image: url(:/lib/su.png);\n"
"\n"
"color: rgb(255, 255, 255);"));
lineEdit_2 = new QLineEdit(centralWidget);
lineEdit_2->setObjectName(QStringLiteral("lineEdit_2"));
lineEdit_2->setGeometry(QRect(231, 17, 211, 31));
lineEdit_2->setStyleSheet(QLatin1String("border-radius:8px;\n"
"border-width:2px;\n"
"border-style:solid ;\n"
"border-color:rgb(163, 163, 163);"));
pushButton_7 = new QPushButton(centralWidget);
pushButton_7->setObjectName(QStringLiteral("pushButton_7"));
pushButton_7->setGeometry(QRect(410, 20, 25, 25));
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->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"
"\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->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->setStyleSheet(QLatin1String("\n"
"#toolBox::tab\n"
"{\n"
"color: rgb(85, 170, 255);\n"
"background-color: rgba(0, 255, 255,00);\n"
"}\n"
"\n"
"#toolBox::tab:selected\n"
"{\n"
"color: rgb(85, 170, 255);\n"
"background-color: rgba(0, 255, 255,00);\n"
"}\n"
"\n"
"*\n"
"{\n"
"background-color: rgba(255, 255, 255, 0);\n"
"}"));
toolBox->setFrameShape(QFrame::NoFrame);
toolBox->setFrameShadow(QFrame::Plain);
page_3 = new QWidget();
page_3->setObjectName(QStringLiteral("page_3"));
pushButton_6 = new QPushButton(page_3);
pushButton_6->setObjectName(QStringLiteral("pushButton_6"));
pushButton_6->setGeometry(QRect(20, 30, 161, 31));
pushButton = new QPushButton(page_3);
pushButton->setObjectName(QStringLiteral("pushButton"));
pushButton->setGeometry(QRect(20, 0, 161, 31));
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));
listWidget = new QListWidget(page);
listWidget->setObjectName(QStringLiteral("listWidget"));
listWidget->setGeometry(QRect(0, 0, 209, 481));
listWidget->setStyleSheet(QStringLiteral(""));
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));
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"));
MainWindow->setCentralWidget(centralWidget);
label_3->raise();
frame_3->raise();
label_6->raise();
frame_4->raise();
plainTextEdit->raise();
pushButton->raise();
listWidget->raise();
frame_2->raise();
horizontalSlider->raise();
label->raise();
frame->raise();
label_4->raise();
label_2->raise();
label_5->raise();
lineEdit->raise();
label_7->raise();
lineEdit_2->raise();
pushButton_7->raise();
label_8->raise();
label_9->raise();
label_11->raise();
toolBox->raise();
retranslateUi(MainWindow);
QObject::connect(toolButton_4, SIGNAL(clicked()), MainWindow, SLOT(close()));
QObject::connect(toolButton_2, SIGNAL(clicked()), MainWindow, SLOT(showMinimized()));
QObject::connect(toolButton_3, SIGNAL(clicked()), MainWindow, SLOT(showMaximized()));
toolBox->setCurrentIndex(0);
toolBox->layout()->setSpacing(11);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
......@@ -264,21 +376,36 @@ public:
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "\346\227\255\345\220\254\351\237\263\344\271\220", nullptr));
label->setText(QString());
pushButton_1->setText(QString());
pushButton_2->setText(QString());
pushButton_3->setText(QString());
pushButton_4->setText(QString());
pushButton_5->setText(QString());
label_10->setText(QString());
toolButton_1->setText(QString());
toolButton_2->setText(QString());
toolButton_3->setText(QString());
toolButton_4->setText(QString());
pushButton->setText(QApplication::translate("MainWindow", "\346\267\273\345\212\240\351\237\263\351\242\221", nullptr));
label_3->setText(QString());
label_4->setText(QString());
label_5->setText(QApplication::translate("MainWindow", "\346\227\255\345\220\254\351\237\263\344\271\220", nullptr));
label_6->setText(QString());
pushButton_4->setText(QString());
pushButton_5->setText(QString());
pushButton_1->setText(QString());
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());
label_7->setText(QString());
lineEdit_2->setPlaceholderText(QApplication::translate("MainWindow", "\346\220\234\342\200\234\346\227\247\346\242\246\344\270\200\345\234\272\342\200\235", nullptr));
pushButton_7->setText(QString());
label_8->setText(QString());
label_9->setText(QApplication::translate("MainWindow", "\347\231\273\345\275\225\350\264\246\345\217\267", nullptr));
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));
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));
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.
先完成此消息的编辑!
想要评论请 注册