MainWindow.ui 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MainWindow</class>
  4. <widget class="QWidget" name="MainWindow">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>1060</width>
  10. <height>695</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Form</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout">
  17. <property name="spacing">
  18. <number>0</number>
  19. </property>
  20. <property name="leftMargin">
  21. <number>0</number>
  22. </property>
  23. <property name="topMargin">
  24. <number>0</number>
  25. </property>
  26. <property name="rightMargin">
  27. <number>0</number>
  28. </property>
  29. <property name="bottomMargin">
  30. <number>0</number>
  31. </property>
  32. <item>
  33. <widget class="QWidget" name="widget_container" native="true">
  34. <property name="styleSheet">
  35. <string notr="true">QWidget#widget_container
  36. {
  37. background-color: rgb(22, 22, 22);
  38. }
  39. </string>
  40. </property>
  41. <widget class="QStackedWidget" name="stackedWidget">
  42. <property name="geometry">
  43. <rect>
  44. <x>80</x>
  45. <y>40</y>
  46. <width>931</width>
  47. <height>381</height>
  48. </rect>
  49. </property>
  50. <property name="currentIndex">
  51. <number>0</number>
  52. </property>
  53. <widget class="QWidget" name="page_open">
  54. <layout class="QVBoxLayout" name="verticalLayout_6">
  55. <property name="spacing">
  56. <number>0</number>
  57. </property>
  58. <property name="leftMargin">
  59. <number>0</number>
  60. </property>
  61. <property name="topMargin">
  62. <number>0</number>
  63. </property>
  64. <property name="rightMargin">
  65. <number>0</number>
  66. </property>
  67. <property name="bottomMargin">
  68. <number>0</number>
  69. </property>
  70. <item>
  71. <widget class="QWidget" name="widget_showopen" native="true">
  72. <property name="sizePolicy">
  73. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  74. <horstretch>0</horstretch>
  75. <verstretch>0</verstretch>
  76. </sizepolicy>
  77. </property>
  78. <property name="styleSheet">
  79. <string notr="true">QWidget#widget_showopen
  80. {
  81. background-color: rgba(60, 65, 68,100);
  82. }</string>
  83. </property>
  84. <layout class="QVBoxLayout" name="verticalLayout_5">
  85. <item>
  86. <layout class="QHBoxLayout" name="horizontalLayout_3">
  87. <item>
  88. <spacer name="horizontalSpacer">
  89. <property name="orientation">
  90. <enum>Qt::Horizontal</enum>
  91. </property>
  92. <property name="sizeHint" stdset="0">
  93. <size>
  94. <width>40</width>
  95. <height>20</height>
  96. </size>
  97. </property>
  98. </spacer>
  99. </item>
  100. <item>
  101. <widget class="QToolButton" name="toolButton_open">
  102. <property name="minimumSize">
  103. <size>
  104. <width>160</width>
  105. <height>50</height>
  106. </size>
  107. </property>
  108. <property name="cursor">
  109. <cursorShape>PointingHandCursor</cursorShape>
  110. </property>
  111. <property name="text">
  112. <string>打开文件</string>
  113. </property>
  114. </widget>
  115. </item>
  116. <item>
  117. <spacer name="horizontalSpacer_2">
  118. <property name="orientation">
  119. <enum>Qt::Horizontal</enum>
  120. </property>
  121. <property name="sizeHint" stdset="0">
  122. <size>
  123. <width>40</width>
  124. <height>20</height>
  125. </size>
  126. </property>
  127. </spacer>
  128. </item>
  129. </layout>
  130. </item>
  131. </layout>
  132. </widget>
  133. </item>
  134. </layout>
  135. </widget>
  136. <widget class="QWidget" name="page_audio">
  137. <layout class="QVBoxLayout" name="verticalLayout_2">
  138. <item>
  139. <widget class="QLabel" name="label">
  140. <property name="styleSheet">
  141. <string notr="true">image: url(:/image/audio.png);</string>
  142. </property>
  143. <property name="text">
  144. <string/>
  145. </property>
  146. </widget>
  147. </item>
  148. </layout>
  149. </widget>
  150. <widget class="QWidget" name="page_video">
  151. <layout class="QVBoxLayout" name="verticalLayout_8">
  152. <property name="spacing">
  153. <number>0</number>
  154. </property>
  155. <property name="leftMargin">
  156. <number>0</number>
  157. </property>
  158. <property name="topMargin">
  159. <number>0</number>
  160. </property>
  161. <property name="rightMargin">
  162. <number>0</number>
  163. </property>
  164. <property name="bottomMargin">
  165. <number>0</number>
  166. </property>
  167. <item>
  168. <widget class="ShowVideoWidget" name="widget_videoPlayer" native="true">
  169. <property name="enabled">
  170. <bool>true</bool>
  171. </property>
  172. <property name="sizePolicy">
  173. <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
  174. <horstretch>0</horstretch>
  175. <verstretch>0</verstretch>
  176. </sizepolicy>
  177. </property>
  178. <property name="mouseTracking">
  179. <bool>true</bool>
  180. </property>
  181. <property name="styleSheet">
  182. <string notr="true">QWidget#widget_videoPlayer
  183. {
  184. background-color: rgb(255, 55, 195);
  185. }</string>
  186. </property>
  187. </widget>
  188. </item>
  189. </layout>
  190. </widget>
  191. </widget>
  192. <widget class="QWidget" name="widget_controller" native="true">
  193. <property name="geometry">
  194. <rect>
  195. <x>70</x>
  196. <y>480</y>
  197. <width>971</width>
  198. <height>60</height>
  199. </rect>
  200. </property>
  201. <property name="styleSheet">
  202. <string notr="true">QWidget#widget_controller
  203. {
  204. background-color: rgba(60, 65, 68,160);
  205. }</string>
  206. </property>
  207. <layout class="QVBoxLayout" name="verticalLayout_7">
  208. <property name="leftMargin">
  209. <number>6</number>
  210. </property>
  211. <property name="topMargin">
  212. <number>6</number>
  213. </property>
  214. <property name="rightMargin">
  215. <number>6</number>
  216. </property>
  217. <property name="bottomMargin">
  218. <number>6</number>
  219. </property>
  220. <item>
  221. <layout class="QHBoxLayout" name="horizontalLayout_2">
  222. <property name="spacing">
  223. <number>1</number>
  224. </property>
  225. <property name="rightMargin">
  226. <number>0</number>
  227. </property>
  228. <item>
  229. <widget class="QPushButton" name="pushButton_open">
  230. <property name="minimumSize">
  231. <size>
  232. <width>36</width>
  233. <height>36</height>
  234. </size>
  235. </property>
  236. <property name="cursor">
  237. <cursorShape>PointingHandCursor</cursorShape>
  238. </property>
  239. <property name="styleSheet">
  240. <string notr="true">QPushButton{
  241. image: url(:image/open_normal.png);
  242. border-radius:0px;
  243. }
  244. QPushButton:hover{
  245. image: url(:image/open_focus.png);
  246. border-radius:0px;
  247. }
  248. QPushButton:pressed{
  249. image: url(:image/open_normal.png);
  250. border-radius:0px;
  251. }
  252. </string>
  253. </property>
  254. <property name="text">
  255. <string/>
  256. </property>
  257. </widget>
  258. </item>
  259. <item>
  260. <spacer name="horizontalSpacer_3">
  261. <property name="orientation">
  262. <enum>Qt::Horizontal</enum>
  263. </property>
  264. <property name="sizeType">
  265. <enum>QSizePolicy::Fixed</enum>
  266. </property>
  267. <property name="sizeHint" stdset="0">
  268. <size>
  269. <width>6</width>
  270. <height>20</height>
  271. </size>
  272. </property>
  273. </spacer>
  274. </item>
  275. <item>
  276. <widget class="QPushButton" name="pushButton_play">
  277. <property name="minimumSize">
  278. <size>
  279. <width>36</width>
  280. <height>36</height>
  281. </size>
  282. </property>
  283. <property name="cursor">
  284. <cursorShape>PointingHandCursor</cursorShape>
  285. </property>
  286. <property name="styleSheet">
  287. <string notr="true">QPushButton{
  288. image: url(:image/start_normal.png);
  289. border-radius:0px;
  290. }
  291. QPushButton:hover{
  292. image: url(:image/start_focus.png);
  293. border-radius:0px;
  294. }
  295. QPushButton:pressed{
  296. image: url(:image/start_normal.png);
  297. border-radius:0px;
  298. }
  299. </string>
  300. </property>
  301. <property name="text">
  302. <string/>
  303. </property>
  304. </widget>
  305. </item>
  306. <item>
  307. <widget class="QPushButton" name="pushButton_pause">
  308. <property name="minimumSize">
  309. <size>
  310. <width>36</width>
  311. <height>36</height>
  312. </size>
  313. </property>
  314. <property name="cursor">
  315. <cursorShape>PointingHandCursor</cursorShape>
  316. </property>
  317. <property name="styleSheet">
  318. <string notr="true">QPushButton{
  319. image: url(:image/pause_normal.png);
  320. border-radius:0px;
  321. }
  322. QPushButton:hover{
  323. image: url(:image/pause_focus.png);
  324. border-radius:0px;
  325. }
  326. QPushButton:pressed{
  327. image: url(:image/pause_normal.png);
  328. border-radius:0px;
  329. }
  330. </string>
  331. </property>
  332. <property name="text">
  333. <string/>
  334. </property>
  335. </widget>
  336. </item>
  337. <item>
  338. <spacer name="horizontalSpacer_5">
  339. <property name="orientation">
  340. <enum>Qt::Horizontal</enum>
  341. </property>
  342. <property name="sizeType">
  343. <enum>QSizePolicy::Fixed</enum>
  344. </property>
  345. <property name="sizeHint" stdset="0">
  346. <size>
  347. <width>6</width>
  348. <height>20</height>
  349. </size>
  350. </property>
  351. </spacer>
  352. </item>
  353. <item>
  354. <widget class="QPushButton" name="pushButton_stop">
  355. <property name="minimumSize">
  356. <size>
  357. <width>36</width>
  358. <height>36</height>
  359. </size>
  360. </property>
  361. <property name="cursor">
  362. <cursorShape>PointingHandCursor</cursorShape>
  363. </property>
  364. <property name="styleSheet">
  365. <string notr="true">QPushButton{
  366. image: url(:image/stop_normal.png);
  367. border-radius:0px;
  368. }
  369. QPushButton:hover{
  370. image: url(:image/stop_focus.png);
  371. border-radius:0px;
  372. }
  373. QPushButton:pressed{
  374. image: url(:image/stop_normal.png);
  375. border-radius:0px;
  376. }
  377. </string>
  378. </property>
  379. <property name="text">
  380. <string/>
  381. </property>
  382. </widget>
  383. </item>
  384. <item>
  385. <spacer name="horizontalSpacer_6">
  386. <property name="orientation">
  387. <enum>Qt::Horizontal</enum>
  388. </property>
  389. <property name="sizeType">
  390. <enum>QSizePolicy::Fixed</enum>
  391. </property>
  392. <property name="sizeHint" stdset="0">
  393. <size>
  394. <width>6</width>
  395. <height>20</height>
  396. </size>
  397. </property>
  398. </spacer>
  399. </item>
  400. <item>
  401. <widget class="VideoSlider" name="horizontalSlider">
  402. <property name="cursor">
  403. <cursorShape>PointingHandCursor</cursorShape>
  404. </property>
  405. <property name="styleSheet">
  406. <string notr="true">QSlider::groove:horizontal {
  407. border: 0px solid #bbb;
  408. }
  409. QSlider::sub-page:horizontal {
  410. background-color: #ff9900;
  411. border-bottom-left-radius: 2px;
  412. border-top-left-radius: 2px;
  413. border-radius: 2px;
  414. margin-top:5px;
  415. margin-bottom:5px;
  416. }
  417. QSlider::add-page:horizontal {
  418. background-color: rgba(228, 228, 228, 50);v
  419. border: 0px solid #777;
  420. border-radius: 2px;
  421. margin-top:5px;
  422. margin-bottom:5px;
  423. }
  424. /*
  425. QSlider::handle:horizontal {
  426. background: rgb(255,153,102);
  427. border: 1px solid rgb(255,153,102);
  428. width: 14px;
  429. height:10px;
  430. border-radius: 7px;
  431. margin-top:2px;
  432. margin-bottom:2px;
  433. }
  434. QSlider::handle:horizontal:hover {
  435. background: rgb(255,128,6);
  436. border: 1px solid rgba(102,102,102,102);
  437. border-radius: 7px;
  438. }*/
  439. QSlider::sub-page:horizontal:disabled {
  440. background: #bbb;
  441. border-color: #999;
  442. }
  443. QSlider::add-page:horizontal:disabled {
  444. background: #eee;
  445. border-color: #999;
  446. }
  447. QSlider::handle:horizontal:disabled {
  448. background: #eee;
  449. border: 1px solid #aaa;
  450. border-radius: 2px;
  451. }
  452. </string>
  453. </property>
  454. <property name="maximum">
  455. <number>100</number>
  456. </property>
  457. <property name="value">
  458. <number>0</number>
  459. </property>
  460. <property name="orientation">
  461. <enum>Qt::Horizontal</enum>
  462. </property>
  463. </widget>
  464. </item>
  465. <item>
  466. <layout class="QHBoxLayout" name="horizontalLayout">
  467. <property name="spacing">
  468. <number>3</number>
  469. </property>
  470. <item>
  471. <widget class="QLabel" name="label_currenttime">
  472. <property name="styleSheet">
  473. <string notr="true">QLabel{
  474. border-radius:0px;
  475. color: #F0F0F0;
  476. background-color:rgba(0,0,0,0);
  477. border-style:none;
  478. font-family:&quot;微软雅黑&quot;;
  479. font-size:16px;
  480. }
  481. </string>
  482. </property>
  483. <property name="text">
  484. <string>00:00:00</string>
  485. </property>
  486. </widget>
  487. </item>
  488. <item>
  489. <widget class="QLabel" name="label_2">
  490. <property name="styleSheet">
  491. <string notr="true">QLabel{
  492. border-radius:0px;
  493. color: #F0F0F0;
  494. background-color:rgba(0,0,0,0);
  495. border-style:none;
  496. font-family:&quot;微软雅黑&quot;;
  497. font-size:16px;
  498. }
  499. </string>
  500. </property>
  501. <property name="text">
  502. <string>/</string>
  503. </property>
  504. </widget>
  505. </item>
  506. <item>
  507. <widget class="QLabel" name="label_totaltime">
  508. <property name="styleSheet">
  509. <string notr="true">QLabel{
  510. border-radius:0px;
  511. color: #F0F0F0;
  512. background-color:rgba(0,0,0,0);
  513. border-style:none;
  514. font-family:&quot;微软雅黑&quot;;
  515. font-size:16px;
  516. }
  517. </string>
  518. </property>
  519. <property name="text">
  520. <string>00:00:00</string>
  521. </property>
  522. </widget>
  523. </item>
  524. </layout>
  525. </item>
  526. <item>
  527. <widget class="QPushButton" name="pushButton_volume">
  528. <property name="minimumSize">
  529. <size>
  530. <width>36</width>
  531. <height>36</height>
  532. </size>
  533. </property>
  534. <property name="cursor">
  535. <cursorShape>PointingHandCursor</cursorShape>
  536. </property>
  537. <property name="styleSheet">
  538. <string notr="true">QPushButton{
  539. image: url(:/image/volume_normal.png);
  540. border-radius:0px;
  541. padding:5px;
  542. }
  543. QPushButton:hover{
  544. image: url(:image/stop_focus.png);
  545. border-radius:0px;
  546. padding:3px;
  547. }
  548. QPushButton:!checked{
  549. image: url(:/image/volume_normal.png);
  550. }
  551. QPushButton:checked{
  552. image: url(:/image/volume_mute.png);
  553. }
  554. </string>
  555. </property>
  556. <property name="text">
  557. <string/>
  558. </property>
  559. <property name="checkable">
  560. <bool>true</bool>
  561. </property>
  562. </widget>
  563. </item>
  564. <item>
  565. <widget class="QSlider" name="horizontalSlider_volume">
  566. <property name="sizePolicy">
  567. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  568. <horstretch>0</horstretch>
  569. <verstretch>0</verstretch>
  570. </sizepolicy>
  571. </property>
  572. <property name="maximumSize">
  573. <size>
  574. <width>150</width>
  575. <height>16777215</height>
  576. </size>
  577. </property>
  578. <property name="styleSheet">
  579. <string notr="true">QSlider::groove:horizontal {
  580. border: 0px solid #bbb;
  581. }
  582. QSlider::sub-page:horizontal {
  583. background: rgb(235,97,0);
  584. border-radius: 0px;
  585. margin-top:8px;
  586. margin-bottom:8px;
  587. }
  588. QSlider::add-page:horizontal {
  589. background: rgb(255,255, 255);
  590. border: 0px solid #777;
  591. border-radius: 2px;
  592. margin-top:8px;
  593. margin-bottom:8px;
  594. }
  595. QSlider::handle:horizontal {
  596. background: rgb(255,153,102);
  597. border: 1px solid rgb(255,153,102);
  598. width: 8px;
  599. height:8px;
  600. border-radius: 2px;
  601. margin-top:6px;
  602. margin-bottom:6px;
  603. }
  604. QSlider::handle:horizontal:hover {
  605. background: rgb(255,128,6);
  606. border: 1px solid rgba(102,102,102,102);
  607. border-radius: 7px;
  608. }
  609. QSlider::sub-page:horizontal:disabled {
  610. background: #bbb;
  611. border-color: #999;
  612. }
  613. QSlider::add-page:horizontal:disabled {
  614. background: #eee;
  615. border-color: #999;
  616. }
  617. QSlider::handle:horizontal:disabled {
  618. background: #eee;
  619. border: 1px solid #aaa;
  620. border-radius: 4px;
  621. }
  622. </string>
  623. </property>
  624. <property name="maximum">
  625. <number>100</number>
  626. </property>
  627. <property name="singleStep">
  628. <number>0</number>
  629. </property>
  630. <property name="pageStep">
  631. <number>0</number>
  632. </property>
  633. <property name="value">
  634. <number>100</number>
  635. </property>
  636. <property name="orientation">
  637. <enum>Qt::Horizontal</enum>
  638. </property>
  639. </widget>
  640. </item>
  641. <item>
  642. <widget class="QLabel" name="label_volume">
  643. <property name="minimumSize">
  644. <size>
  645. <width>20</width>
  646. <height>0</height>
  647. </size>
  648. </property>
  649. <property name="styleSheet">
  650. <string notr="true">QLabel{
  651. border-radius:0px;
  652. color: #F0F0F0;
  653. background-color:rgba(0,0,0,0);
  654. border-style:none;
  655. font: 16px &quot;微软雅黑&quot;;
  656. }
  657. </string>
  658. </property>
  659. <property name="text">
  660. <string>100</string>
  661. </property>
  662. <property name="alignment">
  663. <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
  664. </property>
  665. </widget>
  666. </item>
  667. </layout>
  668. </item>
  669. </layout>
  670. </widget>
  671. </widget>
  672. </item>
  673. </layout>
  674. </widget>
  675. <customwidgets>
  676. <customwidget>
  677. <class>ShowVideoWidget</class>
  678. <extends>QWidget</extends>
  679. <header>Widget/ShowVideoWidget.h</header>
  680. <container>1</container>
  681. </customwidget>
  682. <customwidget>
  683. <class>VideoSlider</class>
  684. <extends>QSlider</extends>
  685. <header>Widget/VideoSlider.h</header>
  686. </customwidget>
  687. </customwidgets>
  688. <resources/>
  689. <connections/>
  690. </ui>