123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708 |
- <?xml version="1.0" encoding="UTF-8"?>
- <ui version="4.0">
- <class>MainWindow</class>
- <widget class="QWidget" name="MainWindow">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>1060</width>
- <height>695</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Form</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <property name="spacing">
- <number>0</number>
- </property>
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QWidget" name="widget_container" native="true">
- <property name="styleSheet">
- <string notr="true">QWidget#widget_container
- {
- background-color: rgb(22, 22, 22);
- }
- </string>
- </property>
- <widget class="QStackedWidget" name="stackedWidget">
- <property name="geometry">
- <rect>
- <x>80</x>
- <y>40</y>
- <width>931</width>
- <height>381</height>
- </rect>
- </property>
- <property name="currentIndex">
- <number>0</number>
- </property>
- <widget class="QWidget" name="page_open">
- <layout class="QVBoxLayout" name="verticalLayout_6">
- <property name="spacing">
- <number>0</number>
- </property>
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QWidget" name="widget_showopen" native="true">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="styleSheet">
- <string notr="true">QWidget#widget_showopen
- {
-
- background-color: rgba(60, 65, 68,100);
- }</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_5">
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_3">
- <item>
- <spacer name="horizontalSpacer">
- <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="QToolButton" name="toolButton_open">
- <property name="minimumSize">
- <size>
- <width>160</width>
- <height>50</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="text">
- <string>打开文件</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="page_audio">
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <widget class="QLabel" name="label">
- <property name="styleSheet">
- <string notr="true">image: url(:/image/audio.png);</string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- <widget class="QWidget" name="page_video">
- <layout class="QVBoxLayout" name="verticalLayout_8">
- <property name="spacing">
- <number>0</number>
- </property>
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="ShowVideoWidget" name="widget_videoPlayer" native="true">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="mouseTracking">
- <bool>true</bool>
- </property>
- <property name="styleSheet">
- <string notr="true">QWidget#widget_videoPlayer
- {
- background-color: rgb(255, 55, 195);
- }</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </widget>
- <widget class="QWidget" name="widget_controller" native="true">
- <property name="geometry">
- <rect>
- <x>70</x>
- <y>480</y>
- <width>971</width>
- <height>60</height>
- </rect>
- </property>
- <property name="styleSheet">
- <string notr="true">QWidget#widget_controller
- {
- background-color: rgba(60, 65, 68,160);
- }</string>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout_7">
- <property name="leftMargin">
- <number>6</number>
- </property>
- <property name="topMargin">
- <number>6</number>
- </property>
- <property name="rightMargin">
- <number>6</number>
- </property>
- <property name="bottomMargin">
- <number>6</number>
- </property>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout_2">
- <property name="spacing">
- <number>1</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QPushButton" name="pushButton_open">
- <property name="minimumSize">
- <size>
- <width>36</width>
- <height>36</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QPushButton{
- image: url(:image/open_normal.png);
- border-radius:0px;
- }
- QPushButton:hover{
- image: url(:image/open_focus.png);
- border-radius:0px;
- }
- QPushButton:pressed{
- image: url(:image/open_normal.png);
- border-radius:0px;
- }
- </string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_3">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>6</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_play">
- <property name="minimumSize">
- <size>
- <width>36</width>
- <height>36</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QPushButton{
- image: url(:image/start_normal.png);
- border-radius:0px;
- }
- QPushButton:hover{
- image: url(:image/start_focus.png);
- border-radius:0px;
- }
- QPushButton:pressed{
- image: url(:image/start_normal.png);
- border-radius:0px;
- }
- </string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_pause">
- <property name="minimumSize">
- <size>
- <width>36</width>
- <height>36</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QPushButton{
- image: url(:image/pause_normal.png);
- border-radius:0px;
- }
- QPushButton:hover{
- image: url(:image/pause_focus.png);
- border-radius:0px;
- }
- QPushButton:pressed{
- image: url(:image/pause_normal.png);
- border-radius:0px;
- }
- </string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_5">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>6</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_stop">
- <property name="minimumSize">
- <size>
- <width>36</width>
- <height>36</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QPushButton{
- image: url(:image/stop_normal.png);
- border-radius:0px;
- }
- QPushButton:hover{
- image: url(:image/stop_focus.png);
- border-radius:0px;
- }
- QPushButton:pressed{
- image: url(:image/stop_normal.png);
- border-radius:0px;
- }
- </string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_6">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Fixed</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>6</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="VideoSlider" name="horizontalSlider">
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QSlider::groove:horizontal {
- border: 0px solid #bbb;
- }
- QSlider::sub-page:horizontal {
- background-color: #ff9900;
- border-bottom-left-radius: 2px;
- border-top-left-radius: 2px;
- border-radius: 2px;
- margin-top:5px;
- margin-bottom:5px;
- }
- QSlider::add-page:horizontal {
- background-color: rgba(228, 228, 228, 50);v
- border: 0px solid #777;
- border-radius: 2px;
- margin-top:5px;
- margin-bottom:5px;
- }
- /*
- QSlider::handle:horizontal {
- background: rgb(255,153,102);
- border: 1px solid rgb(255,153,102);
- width: 14px;
- height:10px;
- border-radius: 7px;
- margin-top:2px;
- margin-bottom:2px;
- }
- QSlider::handle:horizontal:hover {
- background: rgb(255,128,6);
- border: 1px solid rgba(102,102,102,102);
- border-radius: 7px;
- }*/
- QSlider::sub-page:horizontal:disabled {
- background: #bbb;
- border-color: #999;
- }
- QSlider::add-page:horizontal:disabled {
- background: #eee;
- border-color: #999;
- }
- QSlider::handle:horizontal:disabled {
- background: #eee;
- border: 1px solid #aaa;
- border-radius: 2px;
- }
- </string>
- </property>
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="value">
- <number>0</number>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <layout class="QHBoxLayout" name="horizontalLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <item>
- <widget class="QLabel" name="label_currenttime">
- <property name="styleSheet">
- <string notr="true">QLabel{
- border-radius:0px;
- color: #F0F0F0;
- background-color:rgba(0,0,0,0);
- border-style:none;
- font-family:"微软雅黑";
- font-size:16px;
- }
- </string>
- </property>
- <property name="text">
- <string>00:00:00</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_2">
- <property name="styleSheet">
- <string notr="true">QLabel{
- border-radius:0px;
- color: #F0F0F0;
- background-color:rgba(0,0,0,0);
- border-style:none;
- font-family:"微软雅黑";
- font-size:16px;
- }
- </string>
- </property>
- <property name="text">
- <string>/</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_totaltime">
- <property name="styleSheet">
- <string notr="true">QLabel{
- border-radius:0px;
- color: #F0F0F0;
- background-color:rgba(0,0,0,0);
- border-style:none;
- font-family:"微软雅黑";
- font-size:16px;
- }
- </string>
- </property>
- <property name="text">
- <string>00:00:00</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <widget class="QPushButton" name="pushButton_volume">
- <property name="minimumSize">
- <size>
- <width>36</width>
- <height>36</height>
- </size>
- </property>
- <property name="cursor">
- <cursorShape>PointingHandCursor</cursorShape>
- </property>
- <property name="styleSheet">
- <string notr="true">QPushButton{
- image: url(:/image/volume_normal.png);
- border-radius:0px;
- padding:5px;
- }
- QPushButton:hover{
- image: url(:image/stop_focus.png);
- border-radius:0px;
- padding:3px;
- }
- QPushButton:!checked{
- image: url(:/image/volume_normal.png);
- }
- QPushButton:checked{
- image: url(:/image/volume_mute.png);
- }
- </string>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="checkable">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QSlider" name="horizontalSlider_volume">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="maximumSize">
- <size>
- <width>150</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true">QSlider::groove:horizontal {
- border: 0px solid #bbb;
- }
- QSlider::sub-page:horizontal {
- background: rgb(235,97,0);
- border-radius: 0px;
- margin-top:8px;
- margin-bottom:8px;
- }
- QSlider::add-page:horizontal {
- background: rgb(255,255, 255);
- border: 0px solid #777;
- border-radius: 2px;
- margin-top:8px;
- margin-bottom:8px;
- }
- QSlider::handle:horizontal {
- background: rgb(255,153,102);
- border: 1px solid rgb(255,153,102);
- width: 8px;
- height:8px;
- border-radius: 2px;
- margin-top:6px;
- margin-bottom:6px;
- }
- QSlider::handle:horizontal:hover {
- background: rgb(255,128,6);
- border: 1px solid rgba(102,102,102,102);
- border-radius: 7px;
- }
- QSlider::sub-page:horizontal:disabled {
- background: #bbb;
- border-color: #999;
- }
- QSlider::add-page:horizontal:disabled {
- background: #eee;
- border-color: #999;
- }
- QSlider::handle:horizontal:disabled {
- background: #eee;
- border: 1px solid #aaa;
- border-radius: 4px;
- }
- </string>
- </property>
- <property name="maximum">
- <number>100</number>
- </property>
- <property name="singleStep">
- <number>0</number>
- </property>
- <property name="pageStep">
- <number>0</number>
- </property>
- <property name="value">
- <number>100</number>
- </property>
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="label_volume">
- <property name="minimumSize">
- <size>
- <width>20</width>
- <height>0</height>
- </size>
- </property>
- <property name="styleSheet">
- <string notr="true">QLabel{
- border-radius:0px;
- color: #F0F0F0;
- background-color:rgba(0,0,0,0);
- border-style:none;
- font: 16px "微软雅黑";
- }
- </string>
- </property>
- <property name="text">
- <string>100</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
- </widget>
- </widget>
- </item>
- </layout>
- </widget>
- <customwidgets>
- <customwidget>
- <class>ShowVideoWidget</class>
- <extends>QWidget</extends>
- <header>Widget/ShowVideoWidget.h</header>
- <container>1</container>
- </customwidget>
- <customwidget>
- <class>VideoSlider</class>
- <extends>QSlider</extends>
- <header>Widget/VideoSlider.h</header>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections/>
- </ui>
|