├── QT MusicPlayer
├── MyMusicX.pro
├── MyMusicX.pro.user
├── MyMusicX.pro.user.2.1pre1
├── MySystemTray.cpp
├── MySystemTray.h
├── ico2.ico
├── images
│ ├── add.png
│ ├── bg1.jpg
│ ├── bg1.png
│ ├── close.png
│ ├── ico.png
│ ├── icon.png
│ ├── last.png
│ ├── last1.png
│ ├── mini.png
│ ├── mode.png
│ ├── next.png
│ ├── next1.png
│ ├── nosound_dark.png
│ ├── nosound_light.png
│ ├── picstyle.png
│ ├── picstyle2.png
│ ├── play1.png
│ ├── play2.png
│ ├── play3.png
│ ├── play4.png
│ ├── play5.png
│ ├── sound.png
│ ├── traylast.png
│ ├── traynext.png
│ ├── trayplay1.png
│ ├── trayplay2.png
│ ├── traysound1.png
│ ├── traysound2.png
│ ├── traysoundless.png
│ ├── 图标.png
│ └── 图标2.png
├── main.cpp
├── mainwindow.cpp
├── mainwindow.h
├── mainwindow.ui
├── myapp.rc
├── mylrc.cpp
├── mylrc.h
├── myplaylist.cpp
├── myplaylist.h
├── myres.qrc
├── no_focus_delegate.h
└── no_foucus_delegate.cpp
└── README.md
/QT MusicPlayer/MyMusicX.pro:
--------------------------------------------------------------------------------
1 | #-------------------------------------------------
2 | #
3 | # Project created by QtCreator 2013-11-22T07:29:50
4 | #
5 | #-------------------------------------------------
6 |
7 | QT += core gui phonon
8 |
9 | TARGET = MyMusicX
10 | TEMPLATE = app
11 |
12 |
13 | SOURCES += main.cpp\
14 | mainwindow.cpp \
15 | myplaylist.cpp \
16 | no_foucus_delegate.cpp \
17 | MySystemTray.cpp \
18 | mylrc.cpp
19 |
20 | HEADERS += mainwindow.h \
21 | myplaylist.h \
22 | no_focus_delegate.h \
23 | MySystemTray.h \
24 | mylrc.h
25 |
26 | FORMS += mainwindow.ui
27 |
28 | RESOURCES += \
29 | myres.qrc
30 | RC_FILE = myapp.rc
31 |
--------------------------------------------------------------------------------
/QT MusicPlayer/MyMusicX.pro.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ProjectExplorer.Project.ActiveTarget
5 | 0
6 |
7 |
8 | ProjectExplorer.Project.EditorSettings
9 |
10 | System
11 |
12 |
13 |
14 | ProjectExplorer.Project.Target.0
15 |
16 | Desktop
17 | Qt4ProjectManager.Target.DesktopTarget
18 | 1
19 | 0
20 |
21 |
22 | qmake
23 | QtProjectManager.QMakeBuildStep
24 |
25 |
26 |
27 | Make
28 | Qt4ProjectManager.MakeStep
29 | false
30 |
31 |
32 |
33 | 2
34 |
35 | Make
36 | Qt4ProjectManager.MakeStep
37 | true
38 |
39 | clean
40 |
41 |
42 |
43 | 1
44 | false
45 |
46 | Debug
47 | Qt4ProjectManager.Qt4BuildConfiguration
48 | 2
49 | G:/myqttest/MyMusicX-build-desktop
50 | 2
51 | 2
52 | true
53 |
54 |
55 |
56 | qmake
57 | QtProjectManager.QMakeBuildStep
58 |
59 |
60 |
61 | Make
62 | Qt4ProjectManager.MakeStep
63 | false
64 |
65 |
66 |
67 | 2
68 |
69 | Make
70 | Qt4ProjectManager.MakeStep
71 | true
72 |
73 | clean
74 |
75 |
76 |
77 | 1
78 | false
79 |
80 | Release
81 | Qt4ProjectManager.Qt4BuildConfiguration
82 | 0
83 | G:/myqttest/MyMusicX-build-desktop
84 | 2
85 | 2
86 | true
87 |
88 | 2
89 |
90 | MyMusicX
91 | Qt4ProjectManager.Qt4RunConfiguration
92 | 2
93 |
94 | MyMusicX.pro
95 | false
96 | false
97 |
98 | false
99 | false
100 |
101 |
102 | 1
103 |
104 |
105 |
106 | ProjectExplorer.Project.TargetCount
107 | 1
108 |
109 |
110 | ProjectExplorer.Project.Updater.FileVersion
111 | 4
112 |
113 |
114 |
--------------------------------------------------------------------------------
/QT MusicPlayer/MyMusicX.pro.user.2.1pre1:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ProjectExplorer.Project.ActiveTarget
5 | 0
6 |
7 |
8 | ProjectExplorer.Project.EditorSettings
9 |
10 | System
11 |
12 |
13 |
14 | ProjectExplorer.Project.Target.0
15 |
16 | Desktop
17 | Qt4ProjectManager.Target.DesktopTarget
18 | 0
19 | 0
20 |
21 |
22 | qmake
23 | QtProjectManager.QMakeBuildStep
24 |
25 |
26 |
27 | Make
28 | Qt4ProjectManager.MakeStep
29 | false
30 |
31 |
32 |
33 | 2
34 |
35 | Make
36 | Qt4ProjectManager.MakeStep
37 | true
38 |
39 | clean
40 |
41 |
42 |
43 | 1
44 | false
45 |
46 | Debug
47 | Qt4ProjectManager.Qt4BuildConfiguration
48 | 2
49 | G:/MyMusicX/MyMusicX-build-desktop
50 | 2
51 | 2
52 | true
53 |
54 |
55 |
56 | qmake
57 | QtProjectManager.QMakeBuildStep
58 |
59 |
60 |
61 | Make
62 | Qt4ProjectManager.MakeStep
63 | false
64 |
65 |
66 |
67 | 2
68 |
69 | Make
70 | Qt4ProjectManager.MakeStep
71 | true
72 |
73 | clean
74 |
75 |
76 |
77 | 1
78 | false
79 |
80 | Release
81 | Qt4ProjectManager.Qt4BuildConfiguration
82 | 0
83 | G:/MyMusicX/MyMusicX-build-desktop
84 | 2
85 | 2
86 | true
87 |
88 | 2
89 |
90 | MyMusicX
91 | Qt4ProjectManager.Qt4RunConfiguration
92 | 2
93 |
94 | MyMusicX.pro
95 | false
96 | false
97 |
98 | false
99 | false
100 |
101 |
102 | 1
103 |
104 |
105 |
106 | ProjectExplorer.Project.TargetCount
107 | 1
108 |
109 |
110 | ProjectExplorer.Project.Updater.FileVersion
111 | 4
112 |
113 |
114 |
--------------------------------------------------------------------------------
/QT MusicPlayer/MySystemTray.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/MySystemTray.cpp
--------------------------------------------------------------------------------
/QT MusicPlayer/MySystemTray.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/MySystemTray.h
--------------------------------------------------------------------------------
/QT MusicPlayer/ico2.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/ico2.ico
--------------------------------------------------------------------------------
/QT MusicPlayer/images/add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/add.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/bg1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/bg1.jpg
--------------------------------------------------------------------------------
/QT MusicPlayer/images/bg1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/bg1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/close.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/ico.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/icon.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/last.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/last.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/last1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/last1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/mini.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/mini.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/mode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/mode.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/next.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/next1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/next1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/nosound_dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/nosound_dark.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/nosound_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/nosound_light.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/picstyle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/picstyle.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/picstyle2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/picstyle2.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/play1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/play1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/play2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/play2.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/play3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/play3.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/play4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/play4.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/play5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/play5.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/sound.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/sound.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/traylast.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/traylast.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/traynext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/traynext.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/trayplay1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/trayplay1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/trayplay2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/trayplay2.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/traysound1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/traysound1.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/traysound2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/traysound2.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/traysoundless.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/traysoundless.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/图标.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/图标.png
--------------------------------------------------------------------------------
/QT MusicPlayer/images/图标2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/images/图标2.png
--------------------------------------------------------------------------------
/QT MusicPlayer/main.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/main.cpp
--------------------------------------------------------------------------------
/QT MusicPlayer/mainwindow.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/mainwindow.cpp
--------------------------------------------------------------------------------
/QT MusicPlayer/mainwindow.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/mainwindow.h
--------------------------------------------------------------------------------
/QT MusicPlayer/mainwindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 361
10 | 650
11 |
12 |
13 |
14 | MainWindow
15 |
16 |
17 |
18 |
19 |
20 | true
21 |
22 |
23 | false
24 |
25 |
26 | QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks
27 |
28 |
29 |
30 |
31 |
32 | 290
33 | 0
34 | 37
35 | 18
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | ...
55 |
56 |
57 |
58 | :/images/mini.png:/images/mini.png
59 |
60 |
61 |
62 |
63 |
64 | 330
65 | 0
66 | 37
67 | 18
68 |
69 |
70 |
71 |
72 |
73 |
74 | ...
75 |
76 |
77 |
78 | :/images/close.png:/images/close.png
79 |
80 |
81 |
82 |
83 |
84 | 290
85 | 7
86 | 31
87 | 18
88 |
89 |
90 |
91 | PointingHandCursor
92 |
93 |
94 |
95 |
96 |
97 | background-color: rgba(255, 255, 255, 0);
98 |
99 |
100 |
101 |
102 |
103 |
104 | :/images/picstyle.png:/images/picstyle.png
105 |
106 |
107 |
108 | 15
109 | 14
110 |
111 |
112 |
113 | false
114 |
115 |
116 | false
117 |
118 |
119 |
120 |
121 |
122 | 100
123 | 100
124 | 174
125 | 61
126 |
127 |
128 |
129 | -
130 |
131 |
132 | background-color: rgba(255, 255, 255, 0);
133 |
134 |
135 | ...
136 |
137 |
138 |
139 | :/images/last1.png:/images/last1.png
140 |
141 |
142 |
143 | 40
144 | 40
145 |
146 |
147 |
148 | Left
149 |
150 |
151 |
152 | -
153 |
154 |
155 | true
156 |
157 |
158 |
159 |
160 |
161 | background-color: rgba(255, 255, 255, 0);
162 |
163 |
164 |
165 |
166 |
167 |
168 | :/images/play5.png:/images/play5.png
169 |
170 |
171 |
172 | 50
173 | 50
174 |
175 |
176 |
177 | Space
178 |
179 |
180 | false
181 |
182 |
183 | false
184 |
185 |
186 | false
187 |
188 |
189 | QToolButton::DelayedPopup
190 |
191 |
192 | false
193 |
194 |
195 |
196 | -
197 |
198 |
199 | background-color: rgba(255, 255, 255, 0);
200 |
201 |
202 | ...
203 |
204 |
205 |
206 | :/images/next1.png:/images/next1.png
207 |
208 |
209 |
210 | 40
211 | 40
212 |
213 |
214 |
215 | Right
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 | 280
225 | 120
226 | 71
227 | 21
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 | 10
236 | 60
237 | 341
238 | 31
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 | 10
247 | 41
248 | 341
249 | 21
250 |
251 |
252 |
253 | -
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 | 255
262 | 255
263 | 255
264 |
265 |
266 |
267 |
268 |
269 |
270 | 85
271 | 170
272 | 0
273 |
274 |
275 |
276 |
277 |
278 |
279 | 255
280 | 255
281 | 255
282 |
283 |
284 |
285 |
286 |
287 |
288 | 0
289 | 0
290 | 0
291 |
292 |
293 |
294 |
295 |
296 |
297 | 85
298 | 170
299 | 0
300 |
301 |
302 |
303 |
304 |
305 |
306 | 85
307 | 170
308 | 0
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 | 255
318 | 255
319 | 255
320 |
321 |
322 |
323 |
324 |
325 |
326 | 85
327 | 170
328 | 0
329 |
330 |
331 |
332 |
333 |
334 |
335 | 255
336 | 255
337 | 255
338 |
339 |
340 |
341 |
342 |
343 |
344 | 0
345 | 0
346 | 0
347 |
348 |
349 |
350 |
351 |
352 |
353 | 85
354 | 170
355 | 0
356 |
357 |
358 |
359 |
360 |
361 |
362 | 85
363 | 170
364 | 0
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 | 120
374 | 120
375 | 120
376 |
377 |
378 |
379 |
380 |
381 |
382 | 85
383 | 170
384 | 0
385 |
386 |
387 |
388 |
389 |
390 |
391 | 120
392 | 120
393 | 120
394 |
395 |
396 |
397 |
398 |
399 |
400 | 120
401 | 120
402 | 120
403 |
404 |
405 |
406 |
407 |
408 |
409 | 85
410 | 170
411 | 0
412 |
413 |
414 |
415 |
416 |
417 |
418 | 85
419 | 170
420 | 0
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 | 微软雅黑
430 | 10
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 | 21
444 | 10
445 | 100
446 | 36
447 |
448 |
449 |
450 | -
451 |
452 |
453 | PointingHandCursor
454 |
455 |
456 | background-color: rgba(255, 255, 255, 0);
457 |
458 |
459 | ...
460 |
461 |
462 |
463 | :/images/图标.png:/images/图标.png
464 |
465 |
466 |
467 | 25
468 | 25
469 |
470 |
471 |
472 | Alt+M
473 |
474 |
475 |
476 | -
477 |
478 |
479 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
480 | <html><head><meta name="qrichtext" content="1" /><style type="text/css">
481 | p, li { white-space: pre-wrap; }
482 | </style></head><body style=" font-family:'微软雅黑'; font-size:10pt; font-weight:400; font-style:normal;">
483 | <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>
484 |
485 |
486 | color: rgb(255, 255, 255);
487 | font: 10pt "微软雅黑";
488 |
489 |
490 | MyPlayer
491 |
492 |
493 |
494 |
495 |
496 |
497 |
498 |
499 | 20
500 | 120
501 | 50
502 | 52
503 |
504 |
505 |
506 | -
507 |
508 |
509 | PointingHandCursor
510 |
511 |
512 | font: 9pt "微软雅黑";
513 | background-color: rgba(255, 255, 255, 0);
514 | color: rgb(255, 255, 255);
515 |
516 |
517 |
518 | 歌词
519 |
520 |
521 |
522 | -
523 |
524 |
525 | PointingHandCursor
526 |
527 |
528 | font: 9pt "微软雅黑";
529 | color: rgb(255, 255, 255);
530 | background-color: rgba(255, 255, 255, 0);
531 |
532 |
533 | 列表
534 |
535 |
536 | F2
537 |
538 |
539 |
540 |
541 |
542 |
543 |
544 |
545 | 10
546 | 90
547 | 341
548 | 25
549 |
550 |
551 |
552 | -
553 |
554 |
555 |
556 |
557 |
558 |
559 |
560 | 255
561 | 255
562 | 255
563 |
564 |
565 |
566 |
567 |
568 |
569 | 85
570 | 170
571 | 0
572 |
573 |
574 |
575 |
576 |
577 |
578 | 85
579 | 170
580 | 0
581 |
582 |
583 |
584 |
585 |
586 |
587 | 85
588 | 170
589 | 0
590 |
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 | 255
599 | 255
600 | 255
601 |
602 |
603 |
604 |
605 |
606 |
607 | 85
608 | 170
609 | 0
610 |
611 |
612 |
613 |
614 |
615 |
616 | 85
617 | 170
618 | 0
619 |
620 |
621 |
622 |
623 |
624 |
625 | 85
626 | 170
627 | 0
628 |
629 |
630 |
631 |
632 |
633 |
634 |
635 |
636 | 120
637 | 120
638 | 120
639 |
640 |
641 |
642 |
643 |
644 |
645 | 85
646 | 170
647 | 0
648 |
649 |
650 |
651 |
652 |
653 |
654 | 85
655 | 170
656 | 0
657 |
658 |
659 |
660 |
661 |
662 |
663 | 85
664 | 170
665 | 0
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 | 微软雅黑
675 | 9
676 |
677 |
678 |
679 | 00:00
680 |
681 |
682 |
683 | -
684 |
685 |
686 | Qt::Horizontal
687 |
688 |
689 |
690 | 40
691 | 20
692 |
693 |
694 |
695 |
696 | -
697 |
698 |
699 |
700 |
701 |
702 |
703 |
704 | 255
705 | 255
706 | 255
707 |
708 |
709 |
710 |
711 |
712 |
713 | 85
714 | 170
715 | 0
716 |
717 |
718 |
719 |
720 |
721 |
722 | 85
723 | 170
724 | 0
725 |
726 |
727 |
728 |
729 |
730 |
731 | 85
732 | 170
733 | 0
734 |
735 |
736 |
737 |
738 |
739 |
740 |
741 |
742 | 255
743 | 255
744 | 255
745 |
746 |
747 |
748 |
749 |
750 |
751 | 85
752 | 170
753 | 0
754 |
755 |
756 |
757 |
758 |
759 |
760 | 85
761 | 170
762 | 0
763 |
764 |
765 |
766 |
767 |
768 |
769 | 85
770 | 170
771 | 0
772 |
773 |
774 |
775 |
776 |
777 |
778 |
779 |
780 | 120
781 | 120
782 | 120
783 |
784 |
785 |
786 |
787 |
788 |
789 | 85
790 | 170
791 | 0
792 |
793 |
794 |
795 |
796 |
797 |
798 | 85
799 | 170
800 | 0
801 |
802 |
803 |
804 |
805 |
806 |
807 | 85
808 | 170
809 | 0
810 |
811 |
812 |
813 |
814 |
815 |
816 |
817 |
818 | 微软雅黑
819 | 9
820 |
821 |
822 |
823 | 00:00
824 |
825 |
826 |
827 |
828 |
829 |
830 |
831 |
832 | 20
833 | 180
834 | 321
835 | 22
836 |
837 |
838 |
839 | -
840 |
841 |
842 |
843 | 微软雅黑
844 |
845 |
846 |
847 | color: rgb(255, 255, 255);
848 |
849 |
850 | 总曲目:
851 |
852 |
853 |
854 | -
855 |
856 |
857 | Qt::Horizontal
858 |
859 |
860 |
861 | 40
862 | 20
863 |
864 |
865 |
866 |
867 | -
868 |
869 |
870 | font: 9pt "微软雅黑";
871 | color: rgb(255, 255, 255);
872 |
873 |
874 | 当前曲目:
875 |
876 |
877 |
878 |
879 |
880 |
881 |
882 |
883 | 280
884 | 150
885 | 71
886 | 25
887 |
888 |
889 |
890 | -
891 |
892 |
893 | PointingHandCursor
894 |
895 |
896 | font: 9pt "微软雅黑";
897 | background-color: rgba(255, 255, 255, 0);
898 | color: rgb(255, 255, 255);
899 |
900 |
901 | 顺序播放
902 |
903 |
904 |
905 |
906 |
907 |
908 |
909 |
910 | 30
911 | 560
912 | 311
913 | 38
914 |
915 |
916 |
917 | -
918 |
919 |
920 | PointingHandCursor
921 |
922 |
923 | background-color: rgba(255, 255, 255, 0);
924 |
925 |
926 | ...
927 |
928 |
929 |
930 | :/images/add.png:/images/add.png
931 |
932 |
933 |
934 | 30
935 | 30
936 |
937 |
938 |
939 | Ctrl+O
940 |
941 |
942 |
943 | -
944 |
945 |
946 | Qt::Horizontal
947 |
948 |
949 |
950 | 40
951 | 20
952 |
953 |
954 |
955 |
956 | -
957 |
958 |
959 | PointingHandCursor
960 |
961 |
962 | background-color: rgba(255, 255, 255, 0);
963 |
964 |
965 | ...
966 |
967 |
968 |
969 | :/images/mode.png:/images/mode.png
970 |
971 |
972 |
973 | 30
974 | 30
975 |
976 |
977 |
978 |
979 |
980 |
981 |
982 |
983 |
984 |
985 |
986 |
987 |
988 |
989 |
990 |
--------------------------------------------------------------------------------
/QT MusicPlayer/myapp.rc:
--------------------------------------------------------------------------------
1 | IDI_ICON1 ICON DISCARDABLE "ico2.ico"
--------------------------------------------------------------------------------
/QT MusicPlayer/mylrc.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/mylrc.cpp
--------------------------------------------------------------------------------
/QT MusicPlayer/mylrc.h:
--------------------------------------------------------------------------------
1 | #ifndef MYLRC_H
2 | #define MYLRC_H
3 |
4 | #include
5 | #include
6 | class QTimer;
7 |
8 | class MyLrc : public QLabel
9 | {
10 | Q_OBJECT
11 | public:
12 | explicit MyLrc(QWidget *parent = 0);
13 | void start_lrc_mask(qint64 intervaltime);
14 | void stop_lrc_mask();
15 | protected:
16 | void paintEvent(QPaintEvent *);
17 | void mousePressEvent(QMouseEvent *ev);
18 | void mouseMoveEvent(QMouseEvent *ev);
19 | void contextMenuEvent(QContextMenuEvent *ev);
20 |
21 | signals:
22 | void myhide_signal(bool);
23 |
24 |
25 | private slots:
26 | void timeout();
27 | void myhide_slot();
28 |
29 | private:
30 | QLinearGradient linear_gradient;
31 | QLinearGradient mask_linear_gradient;
32 | QFont font;
33 | QTimer *timer;
34 | qreal lrc_mask_width;
35 |
36 | qreal lrc_mask_width_interval;
37 | QPoint offset;
38 |
39 | };
40 |
41 | #endif // MYLRC_H
42 |
--------------------------------------------------------------------------------
/QT MusicPlayer/myplaylist.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/myplaylist.cpp
--------------------------------------------------------------------------------
/QT MusicPlayer/myplaylist.h:
--------------------------------------------------------------------------------
1 | #ifndef MYPLAYLIST_H
2 | #define MYPLAYLIST_H
3 |
4 | #include
5 |
6 | class MyPlaylist : public QTableWidget
7 | {
8 | Q_OBJECT
9 | public:
10 | explicit MyPlaylist(QWidget *parent = 0);
11 |
12 |
13 | signals:
14 | void play_list_clean();
15 | void add_File_signal();
16 |
17 | public slots:
18 |
19 |
20 | protected:
21 | void contextMenuEvent(QContextMenuEvent *);
22 | void closeEvent(QCloseEvent *);
23 |
24 | private slots:
25 | void clear_play_list();
26 | void add_File_slot();
27 |
28 | };
29 | #endif // MYPLAYLIST_H
30 |
--------------------------------------------------------------------------------
/QT MusicPlayer/myres.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | images/icon.png
4 | images/play1.png
5 | images/play2.png
6 | images/play3.png
7 | images/last.png
8 | images/next.png
9 | images/last1.png
10 | images/next1.png
11 | images/play4.png
12 | images/play5.png
13 | images/picstyle.png
14 | images/picstyle2.png
15 | images/nosound_dark.png
16 | images/nosound_light.png
17 | images/sound.png
18 | images/bg1.png
19 | images/图标.png
20 | images/图标2.png
21 | images/ico.png
22 | images/trayplay1.png
23 | images/trayplay2.png
24 | images/traylast.png
25 | images/traynext.png
26 | images/traysound1.png
27 | images/traysound2.png
28 | images/traysoundless.png
29 | images/add.png
30 | images/mode.png
31 | images/mini.png
32 | images/close.png
33 |
34 |
35 |
--------------------------------------------------------------------------------
/QT MusicPlayer/no_focus_delegate.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RealizeItDream/QT/bee5163944252ec5b737d79787b08236b8b467e5/QT MusicPlayer/no_focus_delegate.h
--------------------------------------------------------------------------------
/QT MusicPlayer/no_foucus_delegate.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include "no_focus_delegate.h"
3 | QLineDelegate::QLineDelegate()
4 | {
5 |
6 | }
7 | void QLineDelegate::paint(QPainter* painter, const QStyleOptionViewItem & option, const QModelIndex &index) const
8 | {
9 | QStyleOptionViewItem itemOption(option);
10 | if (itemOption.state & QStyle::State_HasFocus)
11 | {
12 | itemOption.state = itemOption.state ^ QStyle::State_HasFocus;
13 | }
14 | QStyledItemDelegate::paint(painter, itemOption, index);
15 | }
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | QT
2 | ==
3 |
4 | QT音乐播放器
5 | ---
6 | ### 功能:
7 | 1. 实现播放/暂停、上/下一首。
8 | 2. 仿酷狗音乐界面,实现歌曲列表、换肤、迷你模式、托盘菜单控制音乐播放功能。
9 |
--------------------------------------------------------------------------------