Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

1

Qt MP3 PLAYER
1. Qt Creator Icon Desktop
1.1 Icon

2. New Project
2.1 New Project
2.2 Application
2.3 Qt Widgets Application
2.4 Choose..

2.1
2.3

2.2

Qt MP3 PLAYER

3. Qt Widgets Application (Location)


3.1
3.2
3.3 Next

3.1
3.2
3.3

4. Qt Widgets Application (Kits)


4.1 Next

4.1
Qt MP3 PLAYER

5. Qt Widgets Application (Detials)


5.1 Base class QDialog
5.2 Next

5.1

5.2

6. Qt Widgets Application (Summary)


6.1 Finish

6.1

Qt MP3 PLAYER

7. Project
7.1 dialog.cpp

7.1

Qt MP3 PLAYER

8. .pro Icon MiniMp3Player.pro


8.1 multimedia 8
8.2 Icon ()
multimedia

8.1
8

8.2

Qt MP3 PLAYER

9. .h Icon dialog.h
9.1 QMediaPlayer 5
9.2 QUrl 6 ()

9.2

9.1

Qt MP3 PLAYER

10. player QMediaPlayer 21

10

Qt MP3 PLAYER

11. Icon dialog.ui ui (user interfaces)

11

Qt MP3 PLAYER

12. UI Herizontal Slider 2


12.1 1 Scoll
12.2 2

12.1
12.2
1

Qt MP3 PLAYER

10

13. Herizontal Slider 1


13.1 Slider_progress

13

13.1

Qt MP3 PLAYER

11

14. Herizontal Slider 2


14.1 Slider_volume

14

14.1

Qt MP3 PLAYER

12

15. Value 100 ( 100)

15

Qt MP3 PLAYER

13

16. PushButton 2
- 1
- 2
16.1 PushButton 1
16.2 PushButton_start

16.1
16.2

Qt MP3 PLAYER

14

17. PushButton 2
17.1 PushButton_stop

17.
17.1

Qt MP3 PLAYER

15

18. PulhButton 1
18.1 Start

18.1
19. PulhButton 2
19.1 Stop

19.1

Qt MP3 PLAYER

16

20. label 2
- 1 Progress
- 2 Volume
20.1 label 1
20.2 label_progress

20.1
20.2

Qt MP3 PLAYER

17

21 label 2
21.1 label_volume

21
21.1

22. label 1
22.1 Progress

22.1

Qt MP3 PLAYER

18

23. label 1
23.1 Volume

23.1

Qt MP3 PLAYER

19

24. Slider_progress
24.1 Go to slot

24

24.1

24.2 Go to slot sliderMoved(int)

24.2

Qt MP3 PLAYER

20

24.3 dialog.cpp
24.4 void Dialog::on_Slider_progress_sliderMoved(int position)
16-19

24.3

24.4

25. Slider_volume
25.1 Go to slot

25
25.1

Qt MP3 PLAYER

21

25.2 Go to slot sliderMoved(int)

25.2

25.3 dialog.cpp
25.4 void Dialog::on_Slider_volume_sliderMoved(int position)
21-24

25.3

25.4

Qt MP3 PLAYER

22

26. pushButton_start
26.1 Go to slot

26
26.1
26.2 Go to slot click()

26.2

Qt MP3 PLAYER

23

26.3 dialog.cpp
26.4 void Dialog::on_pushButton_start_clicked()
26-29

26.3

26.4

27. pushButton_stop
27.1 Go to slot

27
27.1
Qt MP3 PLAYER

24

27.2 Go to slot click()

27.2

27.3 dialog.cpp
27.4 void Dialog::on_pushButton_stop_clicked()
31-34

27.3
27.4

Qt MP3 PLAYER

25

28. .h Icon dialog.h


28.1
void Dialog::on_pushButton_start_clicked()
void Dialog::on_pushButton_stop_clicked()
dialog.cpp
dialog.h ( 25 27)
28.2 2 30 31

28.1
28.2

Qt MP3 PLAYER

26

29. on_position
29.1 Refactor - > Add Defintion dialog.cpp
void Dialog::on_position(quint64 position) dialog.cpp

29

29.1

Qt MP3 PLAYER

27

29.2 dialog.cpp
void Dialog::on_position(quint64 position) 38 41

29.2

Qt MP3 PLAYER

28

30. onduration
30.1 Refactor - > Add Defintion dialog.cpp
void Dialog::on_duration(quint64 position) dialog.cpp

30
30.1

Qt MP3 PLAYER

29

30.2 dialog.cpp
void Dialog::on_duration(quint64 position) 43 46

30.2

Qt MP3 PLAYER

30

31.
player->setMedia(QUrl::fromLocalFile("C:\\Users\\SoC-Rmutt\\Desktop\\1.mp3"));
player->play();
void Dialog::on_pushButton_start_clicked() 35 36
- 35
- 36

31

32. ?
32.1 -> Properties

32.1

Qt MP3 PLAYER

31

32.2 Properties Security


32.3 coppy Object name

32.3
32.2

32.4 \
\ 1 ( 35)
C++ Qt \ Double
code () \ 2

32.4

Qt MP3 PLAYER

32

33.
player = new QMediaPlayer(this);
connect(player,&QMediaPlayer::positionChanged,this,&Dialog::on_position);
connect(player,&QMediaPlayer::durationChanged,this,&Dialog::on_duration);
10 - 11

33

Qt MP3 PLAYER

33

34. ( Icon )
35.
( Icon )
36. Start

34

35

36

Qt MP3 PLAYER

34

37. player->stop(); ()
void Dialog::on_pushButton_stop_clicked() 44
38. ( Icon )
39.
( Icon )
40. Start
41. Stop

37

38

39

40

41

Qt MP3 PLAYER

35

42. ui->Slider_progress->setValue(position);
void Dialog::on_position(quint64 position) 51
-- Slider_progress (
)
43. ui->Slider_progress->setMaximum(position);
void Dialog::on_duration(quint64 position) 56
-- Slider_progress
()

42
43

Qt MP3 PLAYER

36

44. player->setPosition(position);
void Dialog::on_Slider_progress_sliderMoved(int position) 26
-- Slider_progress (
)
45. player->setVolume(position);
void Dialog::on_Slider_volume_sliderMoved(int position) 32
-- Slider_Volume

44
45

Qt MP3 PLAYER

37

46. ( Icon )
47.
( Icon )
48. Start
49. Stop
50. Slider_Progress
51. Slider_Volume

50
51

46

47

48

49

Qt MP3 PLAYER

38

Deploy

http://www.myconfix.com/blog/tutorial/%E0%B8%A1%E0%B8%B7%E0%B8%A
D%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88%E0%B8%AB%E0%B8%
B1%E0%B8%94-qt-%E0%B8%95%E0%B8%AD%E0%B8%99-deploy-qt-program%E0%B9%83%E0%B8%99%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B
7
Qt http://www.qt.io/download-open-source/#section-2
Ref. : https://www.youtube.com/watch?v=PutunNtVpto

OpenQt

https://www.facebook.com/groups/865489750211411/?fref=ts

Innovation Startup

https://www.facebook.com/groups/1603142046584186/?fref=ts


Cr. dekbandonza@hotmail.com
Qt MP3 PLAYER

You might also like