├── README.md ├── 事件 └── 01 │ ├── 01myWizard │ ├── 01myWizard.pro │ ├── 01myWizard.pro.user │ ├── 01myWizard.pro.user.b4aedfe │ ├── classwizard.cpp │ ├── classwizard.h │ ├── main.cpp │ ├── twopage.cpp │ ├── twopage.h │ └── wizard.ui │ ├── 02keyEvent │ ├── 02keyEvent.pro │ ├── 02keyEvent.pro.user │ ├── 02keyEvent.pro.user.b4aedfe │ ├── main.cpp │ ├── mylineedit.cpp │ ├── mylineedit.h │ ├── widget.cpp │ ├── widget.h │ └── widget.ui │ ├── 03test │ ├── 03test.pro │ ├── 03test.pro.user │ ├── 03test.pro.user.b4aedfe │ ├── main.cpp │ ├── widget.cpp │ ├── widget.h │ └── widget.ui │ ├── 04key │ ├── 04key.pro │ ├── 04key.pro.user │ ├── 04key.pro.user.b4aedfe │ ├── main.cpp │ ├── widget.cpp │ ├── widget.h │ └── widget.ui │ ├── 05mouseEvent │ ├── 05mouseEvent.pro │ ├── 05mouseEvent.pro.user │ ├── 05mouseEvent.pro.user.b4aedfe │ ├── bomb.png │ ├── main.cpp │ ├── widget.cpp │ ├── widget.h │ └── widget.ui │ ├── build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 01myWizard │ ├── Makefile │ ├── classwizard.o │ ├── main.o │ ├── moc_classwizard.cpp │ ├── moc_classwizard.o │ ├── moc_twopage.cpp │ ├── moc_twopage.o │ ├── moc_wizard.cpp │ ├── moc_wizard.o │ ├── twopage.o │ ├── ui_wizard.h │ └── wizard.o │ ├── build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02keyEvent │ ├── Makefile │ ├── main.o │ ├── moc_mylineedit.cpp │ ├── moc_mylineedit.o │ ├── moc_widget.cpp │ ├── moc_widget.o │ ├── mylineedit.o │ ├── ui_widget.h │ └── widget.o │ ├── build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 03test │ ├── Makefile │ ├── main.o │ ├── moc_widget.cpp │ ├── moc_widget.o │ ├── ui_widget.h │ └── widget.o │ ├── build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 04key │ ├── Makefile │ ├── main.o │ ├── moc_widget.cpp │ ├── moc_widget.o │ ├── ui_widget.h │ └── widget.o │ ├── build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 05mouseEvent │ ├── Makefile │ ├── main.o │ ├── moc_widget.cpp │ ├── moc_widget.o │ ├── ui_widget.h │ └── widget.o │ └── day07 ├── 基础知识 ├── 01 │ ├── 00static_func.cpp │ ├── 01test │ │ ├── 01test.pro │ │ ├── 01test.pro.user │ │ ├── 01test.pro.user.b4aedfe │ │ ├── main.cpp │ │ ├── widget.cpp │ │ ├── widget.h │ │ ├── widget.ui │ │ └── xxx.h │ ├── 02test_mau │ │ ├── 02test_mau.pro │ │ ├── 02test_mau.pro.user │ │ ├── Makefile │ │ ├── main.cpp │ │ ├── moc_widget.cpp │ │ ├── ui_widget.h │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui │ ├── 03signal_slots │ │ ├── 03signal_slots.pro │ │ ├── 03signal_slots.pro.user │ │ ├── 03signal_slots.pro.user.b4aedfe │ │ ├── main.cpp │ │ ├── tetsslots.cpp │ │ ├── tetsslots.h │ │ └── tetsslots.ui │ ├── 2016-09-29 16-53-07屏幕截图.png │ ├── build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug │ │ ├── 01test │ │ ├── Makefile │ │ ├── main.o │ │ ├── moc_widget.cpp │ │ ├── moc_widget.o │ │ ├── ui_widget.h │ │ └── widget.o │ ├── build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug │ │ ├── 02test │ │ ├── Makefile │ │ ├── main.o │ │ ├── moc_widget.cpp │ │ ├── moc_widget.o │ │ ├── ui_widget.h │ │ └── widget.o │ ├── build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug │ │ ├── 03signal_slots │ │ ├── Makefile │ │ ├── main.o │ │ ├── moc_tetsslots.cpp │ │ ├── moc_tetsslots.o │ │ ├── tetsslots.o │ │ └── ui_tetsslots.h │ └── day01 └── 02 │ ├── 01calc │ ├── 01calc.pro │ ├── 01calc.pro.user │ ├── 01calc.pro.user.b4aedfe │ ├── main.cpp │ ├── mycalc.cpp │ ├── mycalc.h │ └── mycalc.ui │ ├── 02send_recv │ ├── 02send_recv.pro │ ├── 02send_recv.pro.user │ ├── main.cpp │ ├── myrecv.cpp │ ├── myrecv.h │ ├── mysend.cpp │ └── mysend.h │ ├── 03FormToForm │ ├── 02FormToForm.pro │ ├── 02FormToForm.pro.user │ ├── 02FormToForm.pro.user.b4aedfe │ ├── main.cpp │ ├── oneform.cpp │ ├── oneform.h │ ├── oneform.ui │ ├── threeform.cpp │ ├── threeform.h │ ├── threeform.ui │ ├── twoform.cpp │ ├── twoform.h │ └── twoform.ui │ ├── 04staticFormToForm │ ├── 04staticFormToForm.pro │ ├── 04staticFormToForm.pro.user │ ├── 04staticFormToForm.pro.user.b4aedfe │ ├── common.cpp │ ├── common.h │ ├── main.cpp │ ├── oneform.cpp │ ├── oneform.h │ ├── oneform.ui │ ├── threeform.cpp │ ├── threeform.h │ ├── threeform.ui │ ├── twoform.cpp │ ├── twoform.h │ └── twoform.ui │ ├── build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 01calc │ ├── Makefile │ ├── main.o │ ├── moc_mycalc.cpp │ ├── moc_mycalc.o │ ├── mycalc.o │ └── ui_mycalc.h │ ├── build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02FormToForm │ ├── Makefile │ ├── main.o │ ├── moc_oneform.cpp │ ├── moc_oneform.o │ ├── moc_threeform.cpp │ ├── moc_threeform.o │ ├── moc_twoform.cpp │ ├── moc_twoform.o │ ├── oneform.o │ ├── threeform.o │ ├── twoform.o │ ├── ui_oneform.h │ ├── ui_threeform.h │ └── ui_twoform.h │ ├── build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 04staticFormToForm │ ├── Makefile │ ├── common.o │ ├── main.o │ ├── moc_oneform.cpp │ ├── moc_oneform.o │ ├── moc_threeform.cpp │ ├── moc_threeform.o │ ├── moc_twoform.cpp │ ├── moc_twoform.o │ ├── oneform.o │ ├── threeform.o │ ├── twoform.o │ ├── ui_oneform.h │ ├── ui_threeform.h │ └── ui_twoform.h │ └── day02 ├── 播放器 ├── 01设计UI │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 03打开视频文件 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 04播放与暂停,上一首,下一首 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 05.1音量调节 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 05.2设置静音 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 06界面控制逻辑完善 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 07.1快进,后退 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 07.2获取播放进度 │ └── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ │ ├── main.cpp │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui ├── 08拖动播放 │ ├── 01myPlayer │ │ ├── 01myPlayer.pro │ │ ├── 01myPlayer.pro.user │ │ ├── 01myPlayer.pro.user.b4aedfe │ │ ├── images │ │ │ ├── Bear0.png │ │ │ ├── add.png │ │ │ ├── background.png │ │ │ ├── background2.png │ │ │ ├── bomb.png │ │ │ ├── mob.png │ │ │ ├── next.png │ │ │ ├── open.png │ │ │ ├── open2.png │ │ │ ├── open3.png │ │ │ ├── pause.png │ │ │ ├── play.png │ │ │ ├── previous.png │ │ │ ├── silent.png │ │ │ ├── silent2.png │ │ │ └── voice.png │ │ ├── main.cpp │ │ ├── mylabel.cpp │ │ ├── mylabel.h │ │ ├── myprocess.cpp │ │ ├── myprocess.h │ │ ├── res.qrc │ │ ├── widget.cpp │ │ ├── widget.h │ │ └── widget.ui │ └── build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug │ │ ├── 01myPlayer │ │ ├── Makefile │ │ ├── main.o │ │ ├── moc_mylabel.cpp │ │ ├── moc_mylabel.o │ │ ├── moc_myprocess.cpp │ │ ├── moc_myprocess.o │ │ ├── moc_widget.cpp │ │ ├── moc_widget.o │ │ ├── mylabel.o │ │ ├── myprocess.o │ │ ├── qrc_res.cpp │ │ ├── qrc_res.o │ │ ├── ui_widget.h │ │ └── widget.o └── 09右键菜单 │ ├── 01myPlayer │ ├── 01myPlayer.pro │ ├── 01myPlayer.pro.user │ ├── images │ │ ├── Bear0.png │ │ ├── add.png │ │ ├── background.png │ │ ├── background2.png │ │ ├── bomb.png │ │ ├── mob.png │ │ ├── next.png │ │ ├── open.png │ │ ├── open2.png │ │ ├── open3.png │ │ ├── pause.png │ │ ├── play.png │ │ ├── previous.png │ │ ├── silent.png │ │ ├── silent2.png │ │ └── voice.png │ ├── main.cpp │ ├── mylabel.cpp │ ├── mylabel.h │ ├── myprocess.cpp │ ├── myprocess.h │ ├── res.qrc │ ├── widget.cpp │ ├── widget.h │ └── widget.ui │ └── build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 01myPlayer │ ├── Makefile │ ├── main.o │ ├── moc_mylabel.cpp │ ├── moc_mylabel.o │ ├── moc_myprocess.cpp │ ├── moc_myprocess.o │ ├── moc_widget.cpp │ ├── moc_widget.o │ ├── mylabel.o │ ├── myprocess.o │ ├── qrc_res.cpp │ ├── qrc_res.o │ ├── ui_widget.h │ └── widget.o ├── 数据库 ├── human.db ├── sql ├── sqlite-snapshot-201606031859.tar.gz └── 练习 ├── 记事本 ├── 01notepad.pro ├── 01notepad.pro.user ├── 01notepad.pro.user.b4aedfe ├── images │ ├── about.png │ ├── copy.png │ ├── cut.png │ ├── exit.png │ ├── new.png │ ├── next.png │ ├── open.png │ ├── paste.png │ ├── previous.png │ ├── redo.png │ ├── save.png │ ├── saveAs.png │ └── undo.png ├── main.cpp ├── mynotepad.cpp ├── mynotepad.h ├── mynotepad.ui ├── replacedialog.cpp ├── replacedialog.h ├── replacedialog.ui ├── res.qrc ├── searchdialog.cpp ├── searchdialog.h ├── searchdialog.ui ├── subtext.cpp └── subtext.h └── 黑白棋 ├── 01画棋盘 └── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ ├── background.jpg │ ├── background2.jpg │ ├── black.png │ ├── board.jpg │ ├── board1.jpg │ ├── board2.jpg │ ├── board4.jpg │ └── white.png │ └── main.cpp ├── 02画棋子 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ └── main.cpp └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── moc_classchess.cpp │ └── moc_classchess.o ├── 03普通落子 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ └── main.cpp └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── moc_classchess.cpp │ └── moc_classchess.o ├── 04增加信号 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ └── main.cpp └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── moc_classchess.cpp │ └── moc_classchess.o ├── 05增加UI界面 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ ├── main.cpp │ ├── mainform.cpp │ ├── mainform.h │ └── mainform.ui └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── mainform.o │ ├── moc_classchess.cpp │ ├── moc_classchess.o │ ├── moc_mainform.cpp │ ├── moc_mainform.o │ └── ui_mainform.h ├── 06增加吃子规则 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ ├── main.cpp │ ├── mainform.cpp │ ├── mainform.h │ └── mainform.ui └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── mainform.o │ ├── moc_classchess.cpp │ ├── moc_classchess.o │ ├── moc_mainform.cpp │ ├── moc_mainform.o │ └── ui_mainform.h ├── 07实现人人对战 ├── 02myChess │ ├── 02myChess.pro │ ├── 02myChess.pro.user │ ├── 02myChess.pro.user.b4aedfe │ ├── classchess.cpp │ ├── classchess.h │ ├── image │ │ ├── background.jpg │ │ ├── background2.jpg │ │ ├── black.png │ │ ├── board.jpg │ │ ├── board1.jpg │ │ ├── board2.jpg │ │ ├── board4.jpg │ │ └── white.png │ ├── main.cpp │ ├── mainform.cpp │ ├── mainform.h │ └── mainform.ui └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug │ ├── 02myChess │ ├── Makefile │ ├── classchess.o │ ├── main.o │ ├── mainform.o │ ├── moc_classchess.cpp │ ├── moc_classchess.o │ ├── moc_mainform.cpp │ ├── moc_mainform.o │ └── ui_mainform.h └── 08人机对战 ├── 02myChess ├── 02myChess.pro ├── 02myChess.pro.user ├── 02myChess.pro.user.b4aedfe ├── classchess.cpp ├── classchess.h ├── image │ ├── background.jpg │ ├── background2.jpg │ ├── black.png │ ├── board.jpg │ ├── board1.jpg │ ├── board2.jpg │ ├── board4.jpg │ └── white.png ├── main.cpp ├── mainform.cpp ├── mainform.h └── mainform.ui └── build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug ├── 02myChess ├── Makefile ├── classchess.o ├── main.o ├── mainform.o ├── moc_classchess.cpp ├── moc_classchess.o ├── moc_mainform.cpp ├── moc_mainform.o └── ui_mainform.h /README.md: -------------------------------------------------------------------------------- 1 | # Qt 记事本项目   2 | -------------------------------------------------------------------------------- /事件/01/01myWizard/01myWizard.pro: -------------------------------------------------------------------------------- 1 | HEADERS += \ 2 | classwizard.h \ 3 | twopage.h 4 | 5 | SOURCES += \ 6 | classwizard.cpp \ 7 | main.cpp \ 8 | twopage.cpp 9 | QT += widgets 10 | 11 | FORMS += \ 12 | wizard.ui 13 | -------------------------------------------------------------------------------- /事件/01/01myWizard/classwizard.cpp: -------------------------------------------------------------------------------- 1 | #include "classwizard.h" 2 | 3 | 4 | classWizard::classWizard(QWidget *parent) : QWizard(parent) 5 | { 6 | this->addPage(IntroPage()); 7 | 8 | two = new TwoPage(this); 9 | this->addPage(two); 10 | 11 | } 12 | 13 | QWizardPage *classWizard::IntroPage(){ 14 | QWizardPage *page = new QWizardPage(this); 15 | page->setTitle("Introduction"); 16 | 17 | QLabel *label = new QLabel("This wizard will help you register your copy " 18 | "of Super Product Two."); 19 | label->setWordWrap(true); 20 | 21 | QVBoxLayout *layout = new QVBoxLayout; 22 | layout->addWidget(label); 23 | page->setLayout(layout); 24 | 25 | return page; 26 | } 27 | 28 | -------------------------------------------------------------------------------- /事件/01/01myWizard/classwizard.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSWIZARD_H 2 | #define CLASSWIZARD_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "twopage.h" 9 | 10 | class classWizard : public QWizard 11 | { 12 | Q_OBJECT 13 | public: 14 | explicit classWizard(QWidget *parent = 0); 15 | 16 | signals: 17 | 18 | public slots: 19 | 20 | private: 21 | QWizardPage *IntroPage(); 22 | //QWizardPage *ClassInfoPage(); 23 | //QWizardPage *CodeStylePage(); 24 | //QWizardPage *OutputFilesPage(); 25 | // QWizardPage *ConclusionPage(); 26 | 27 | 28 | TwoPage *two; 29 | }; 30 | 31 | #endif // CLASSWIZARD_H 32 | -------------------------------------------------------------------------------- /事件/01/01myWizard/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include "classwizard.h" 7 | 8 | 9 | int main(int argc, char *argv[]){ 10 | QApplication a(argc, argv); 11 | 12 | classWizard cw; 13 | cw.show(); 14 | 15 | a.exec(); 16 | } 17 | -------------------------------------------------------------------------------- /事件/01/01myWizard/twopage.h: -------------------------------------------------------------------------------- 1 | #ifndef TWOPAGE_H 2 | #define TWOPAGE_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | class TwoPage : public QWizardPage 15 | { 16 | Q_OBJECT 17 | public: 18 | explicit TwoPage(QWidget *parent = 0); 19 | 20 | signals: 21 | 22 | public slots: 23 | }; 24 | 25 | #endif // TWOPAGE_H 26 | -------------------------------------------------------------------------------- /事件/01/01myWizard/wizard.ui: -------------------------------------------------------------------------------- 1 | 2 | Wizard 3 | 4 | 5 | 6 | 0 7 | 0 8 | 400 9 | 300 10 | 11 | 12 | 13 | Wizard 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/02keyEvent.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-12T13:26:09 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02keyEvent 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | mylineedit.cpp 18 | 19 | HEADERS += widget.h \ 20 | mylineedit.h 21 | 22 | FORMS += widget.ui 23 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/mylineedit.cpp: -------------------------------------------------------------------------------- 1 | #include "mylineedit.h" 2 | 3 | myLineEdit::myLineEdit(QWidget *parent) : QLineEdit(parent) 4 | { 5 | 6 | } 7 | 8 | void myLineEdit::keyPressEvent(QKeyEvent *e){ 9 | qDebug() << "1"; 10 | if(e->key()>=Qt::Key_0 && e->key()<=Qt::Key_9) 11 | { 12 | QLineEdit::keyPressEvent(e); 13 | // qDebug() << "aaaaaa"; 14 | } 15 | else{ 16 | e->ignore(); 17 | } 18 | } 19 | void myLineEdit::keyReleaseEvent(QKeyEvent *e){ 20 | qDebug() << "3\n-------------------\n"; 21 | QLineEdit::keyReleaseEvent(e); 22 | } 23 | 24 | 25 | bool myLineEdit::event(QEvent *e){ 26 | if(e->type() == QEvent::KeyPress){ 27 | qDebug() << "2"; 28 | //e->ignore(); 29 | } 30 | 31 | else if(e->type() == QEvent::KeyRelease){ 32 | qDebug() << "4"; 33 | } 34 | QLineEdit::event(e); 35 | } 36 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/mylineedit.h: -------------------------------------------------------------------------------- 1 | #ifndef MYLINEEDIT_H 2 | #define MYLINEEDIT_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class myLineEdit : public QLineEdit 11 | { 12 | Q_OBJECT 13 | public: 14 | explicit myLineEdit(QWidget *parent = 0); 15 | 16 | signals: 17 | 18 | public slots: 19 | 20 | protected: 21 | void keyPressEvent(QKeyEvent *); 22 | void keyReleaseEvent(QKeyEvent *); 23 | 24 | bool event(QEvent *); 25 | 26 | 27 | }; 28 | 29 | #endif // MYLINEEDIT_H 30 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | 9 | #include "mylineedit.h" 10 | 11 | namespace Ui { 12 | class Widget; 13 | } 14 | 15 | class Widget : public QWidget 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | explicit Widget(QWidget *parent = 0); 21 | ~Widget(); 22 | 23 | private: 24 | Ui::Widget *ui; 25 | 26 | myLineEdit *lineEdit1; 27 | myLineEdit *lineEdit2; 28 | 29 | void Init(); 30 | 31 | protected: 32 | void keyPressEvent(QKeyEvent *); 33 | void keyReleaseEvent(QKeyEvent *); 34 | bool eventFilter(QObject *, QEvent *); 35 | 36 | }; 37 | 38 | #endif // WIDGET_H 39 | -------------------------------------------------------------------------------- /事件/01/02keyEvent/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Widget 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /事件/01/03test/03test.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-12T14:50:33 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 03test 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp 17 | 18 | HEADERS += widget.h 19 | 20 | FORMS += widget.ui 21 | -------------------------------------------------------------------------------- /事件/01/03test/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /事件/01/03test/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace Ui { 9 | class Widget; 10 | } 11 | 12 | class Widget : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit Widget(QWidget *parent = 0); 18 | ~Widget(); 19 | 20 | private: 21 | Ui::Widget *ui; 22 | QLineEdit *currentEdit; 23 | QString Str; 24 | 25 | void Init(); 26 | 27 | 28 | protected: 29 | bool eventFilter(QObject *, QEvent *); 30 | 31 | private slots: 32 | void doProcessClinkNum(bool); 33 | }; 34 | 35 | #endif // WIDGET_H 36 | -------------------------------------------------------------------------------- /事件/01/04key/04key.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-12T15:59:14 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 04key 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp 17 | 18 | HEADERS += widget.h 19 | 20 | FORMS += widget.ui 21 | -------------------------------------------------------------------------------- /事件/01/04key/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /事件/01/04key/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | Widget::~Widget() 12 | { 13 | delete ui; 14 | } 15 | 16 | 17 | void Widget::keyPressEvent(QKeyEvent *e){ 18 | int key = e->key(); 19 | switch (key) { 20 | case Qt::Key_Left: 21 | ui->pushButton->move(ui->frame->width()/2-ui->pushButton->width()*2, ui->pushButton->y()); 22 | break; 23 | case Qt::Key_Right: 24 | ui->pushButton->move(ui->frame->width()/2+10, ui->pushButton->y()); 25 | break; 26 | case Qt::Key_Up: 27 | ui->pushButton->move(ui->pushButton->x(), ui->frame_2->height()/2-ui->pushButton->height()-10); 28 | break; 29 | case Qt::Key_Down: 30 | ui->pushButton->move(ui->pushButton->x(), ui->frame_2->height()/2+10); 31 | 32 | break; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /事件/01/04key/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Ui { 8 | class Widget; 9 | } 10 | 11 | class Widget : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit Widget(QWidget *parent = 0); 17 | ~Widget(); 18 | 19 | private: 20 | Ui::Widget *ui; 21 | 22 | 23 | 24 | protected: 25 | void keyPressEvent(QKeyEvent *); 26 | 27 | }; 28 | 29 | #endif // WIDGET_H 30 | -------------------------------------------------------------------------------- /事件/01/05mouseEvent/05mouseEvent.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-12T16:19:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 05mouseEvent 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp 17 | 18 | HEADERS += widget.h 19 | 20 | FORMS += widget.ui 21 | -------------------------------------------------------------------------------- /事件/01/05mouseEvent/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/05mouseEvent/bomb.png -------------------------------------------------------------------------------- /事件/01/05mouseEvent/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /事件/01/05mouseEvent/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | private: 23 | Ui::Widget *ui; 24 | QPoint offpoint; 25 | 26 | 27 | void Init(); 28 | 29 | protected: 30 | void mousePressEvent(QMouseEvent *); 31 | void mouseMoveEvent(QMouseEvent *); 32 | void mouseReleaseEvent(QMouseEvent *); 33 | void wheelEvent(QWheelEvent *); 34 | }; 35 | 36 | #endif // WIDGET_H 37 | -------------------------------------------------------------------------------- /事件/01/05mouseEvent/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 461 10 | 348 11 | 12 | 13 | 14 | Widget 15 | 16 | 17 | 18 | 19 | 20 20 | 30 21 | 201 22 | 141 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myWizard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myWizard -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/classwizard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/classwizard.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classwizard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classwizard.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twopage.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twopage.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_wizard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_wizard.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/twopage.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/twopage.o -------------------------------------------------------------------------------- /事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/wizard.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-01myWizard-Desktop_Qt_5_5_1_GCC_64bit-Debug/wizard.o -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/02keyEvent: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/02keyEvent -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylineedit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylineedit.o -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylineedit.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylineedit.o -------------------------------------------------------------------------------- /事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-02keyEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/03test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/03test -------------------------------------------------------------------------------- /事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-03test-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/04key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/04key -------------------------------------------------------------------------------- /事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-04key-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/05mouseEvent: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/05mouseEvent -------------------------------------------------------------------------------- /事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/事件/01/build-05mouseEvent-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /基础知识/01/00static_func.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * 静态成员的使用 3 | * */ 4 | #include 5 | using namespace std; 6 | 7 | class Com{ 8 | private: 9 | static int totalAge; 10 | public: 11 | static int count; 12 | static int GetTotalAge(int age){ 13 | totalAge += age; 14 | return totalAge; 15 | } 16 | }; 17 | int Com::count = 0; 18 | int Com::totalAge = 0; 19 | 20 | class Human{ 21 | private: 22 | int age; 23 | string name; 24 | public: 25 | Human(int age, string name):age(age), name(name){ 26 | Com::count++; 27 | Com::GetTotalAge(age); 28 | } 29 | }; 30 | 31 | int main(){ 32 | Human h01(201, "tth1"); 33 | Human h02(202, "tth2"); 34 | Human h03(203, "tth3"); 35 | Human h04(204, "tth4"); 36 | cout << "人数: " << Com::count << endl; 37 | 38 | cout << "年龄总和:" << Com::GetTotalAge(0) << endl; 39 | return 0; 40 | } 41 | -------------------------------------------------------------------------------- /基础知识/01/01test/01test.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-09-29T11:12:54 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01test 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp 17 | 18 | HEADERS += widget.h 19 | 20 | FORMS += widget.ui 21 | -------------------------------------------------------------------------------- /基础知识/01/01test/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/01/01test/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Widget; 8 | } 9 | 10 | class Widget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Widget(QWidget *parent = 0); 16 | ~Widget(); 17 | 18 | private slots: 19 | void on_btn_login_clicked(); 20 | 21 | 22 | void on_btn_cancel_clicked(); 23 | 24 | private: 25 | Ui::Widget *ui; 26 | 27 | }; 28 | 29 | #endif // WIDGET_H 30 | -------------------------------------------------------------------------------- /基础知识/01/02test_mau/02test_mau.pro: -------------------------------------------------------------------------------- 1 | ###################################################################### 2 | # Automatically generated by qmake (3.0) ?? 9? 29 13:47:23 2016 3 | ###################################################################### 4 | 5 | QT+= widgets 6 | TEMPLATE = app 7 | TARGET = 02test 8 | INCLUDEPATH += . 9 | 10 | # Input 11 | HEADERS += widget.h 12 | FORMS += widget.ui 13 | SOURCES += main.cpp widget.cpp 14 | -------------------------------------------------------------------------------- /基础知识/01/02test_mau/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/01/02test_mau/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | #include 4 | 5 | Widget::Widget(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::Widget) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | void Widget::on_btn_login_clicked() 18 | { 19 | 20 | QString name = ui->ledit_name->text(); 21 | QString passwd = ui->ledit_passwd->text(); 22 | if(name == passwd){ 23 | qDebug() << "登录成功!"; 24 | } 25 | } 26 | 27 | 28 | -------------------------------------------------------------------------------- /基础知识/01/02test_mau/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Widget; 8 | } 9 | 10 | class Widget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Widget(QWidget *parent = 0); 16 | ~Widget(); 17 | 18 | private slots: 19 | void on_btn_login_clicked(); 20 | 21 | 22 | private: 23 | Ui::Widget *ui; 24 | 25 | }; 26 | 27 | #endif // WIDGET_H 28 | -------------------------------------------------------------------------------- /基础知识/01/03signal_slots/03signal_slots.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-09-29T16:18:06 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 03signal_slots 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | tetsslots.cpp 17 | 18 | HEADERS += tetsslots.h 19 | 20 | FORMS += tetsslots.ui 21 | -------------------------------------------------------------------------------- /基础知识/01/03signal_slots/main.cpp: -------------------------------------------------------------------------------- 1 | #include "tetsslots.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | tetsSlots w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/01/03signal_slots/tetsslots.h: -------------------------------------------------------------------------------- 1 | #ifndef TETSSLOTS_H 2 | #define TETSSLOTS_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class tetsSlots; 8 | } 9 | 10 | class tetsSlots : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit tetsSlots(QWidget *parent = 0); 16 | ~tetsSlots(); 17 | 18 | private: 19 | Ui::tetsSlots *ui; 20 | 21 | private slots: 22 | void doProcessClicked(bool checked = false); 23 | }; 24 | 25 | #endif // TETSSLOTS_H 26 | -------------------------------------------------------------------------------- /基础知识/01/2016-09-29 16-53-07屏幕截图.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/2016-09-29 16-53-07屏幕截图.png -------------------------------------------------------------------------------- /基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/01test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/01test -------------------------------------------------------------------------------- /基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-01test-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/02test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/02test -------------------------------------------------------------------------------- /基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-02test_mau-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/03signal_slots: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/03signal_slots -------------------------------------------------------------------------------- /基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_tetsslots.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_tetsslots.o -------------------------------------------------------------------------------- /基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/tetsslots.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/01/build-03signal_slots-Desktop_Qt_5_5_1_GCC_64bit-Debug/tetsslots.o -------------------------------------------------------------------------------- /基础知识/02/01calc/01calc.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-09-30T10:04:02 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01calc 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | mycalc.cpp 17 | 18 | HEADERS += mycalc.h 19 | 20 | FORMS += mycalc.ui 21 | -------------------------------------------------------------------------------- /基础知识/02/01calc/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mycalc.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | myCalc w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/02/01calc/mycalc.h: -------------------------------------------------------------------------------- 1 | #ifndef MYCALC_H 2 | #define MYCALC_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class myCalc; 8 | } 9 | 10 | class myCalc : public QDialog 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit myCalc(QWidget *parent = 0); 16 | ~myCalc(); 17 | 18 | private: 19 | Ui::myCalc *ui; 20 | QString globalVar; 21 | QStringList arrayVar; 22 | 23 | 24 | void Init(); 25 | 26 | private slots: 27 | void doProcessClickNum(bool); //处理数字 28 | void doProcessClickSymbol(bool); //处理小数点,正负 29 | void doProcessClickDelete(bool); //处理清除,删除 30 | void doProcessClickArith(bool); //处理 + - * / 31 | void doProcessClickEqual(bool); //处理 = 32 | }; 33 | 34 | #endif // MYCALC_H 35 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/02send_recv.pro: -------------------------------------------------------------------------------- 1 | HEADERS += \ 2 | mysend.h \ 3 | myrecv.h 4 | 5 | SOURCES += \ 6 | mysend.cpp \ 7 | myrecv.cpp \ 8 | main.cpp 9 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mysend.h" 2 | #include "myrecv.h" 3 | 4 | int main(){ 5 | //创建产生者 6 | mySend *send01 = new mySend(); 7 | //创建接收者 8 | myRecv *recv01 = new myRecv(); 9 | //绑定信号 10 | QObject::connect(send01, SIGNAL(SignalSendMsg(QString)), 11 | recv01, SLOT(doProcessSendMsg(QString))); 12 | //测试发射信号 13 | send01->PreSendMsg("测试发射信号"); 14 | 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/myrecv.cpp: -------------------------------------------------------------------------------- 1 | #include "myrecv.h" 2 | #include 3 | 4 | myRecv::myRecv(QObject *parent) : QObject(parent) 5 | { 6 | 7 | } 8 | 9 | void myRecv::doProcessSendMsg(QString str){ 10 | qDebug() <<"接收者收到的数据为:" << str << endl; 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/myrecv.h: -------------------------------------------------------------------------------- 1 | #ifndef MYRECV_H 2 | #define MYRECV_H 3 | 4 | #include 5 | 6 | class myRecv : public QObject 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit myRecv(QObject *parent = 0); 11 | 12 | public slots: 13 | void doProcessSendMsg(QString); 14 | }; 15 | 16 | #endif // MYRECV_H 17 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/mysend.cpp: -------------------------------------------------------------------------------- 1 | #include "mysend.h" 2 | 3 | mySend::mySend(QObject *parent) : QObject(parent) 4 | { 5 | 6 | } 7 | 8 | void mySend::PreSendMsg(QString str){ 9 | emit SignalSendMsg(str); 10 | } 11 | -------------------------------------------------------------------------------- /基础知识/02/02send_recv/mysend.h: -------------------------------------------------------------------------------- 1 | #ifndef MYSEND_H 2 | #define MYSEND_H 3 | 4 | #include 5 | 6 | class mySend : public QObject 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit mySend(QObject *parent = 0); 11 | void PreSendMsg(QString); //供给外部调用,而发送信号 12 | 13 | signals: 14 | void SignalSendMsg(QString); //自定义一个信号/事件 (信号不需要实现,而槽一定要实现) 15 | }; 16 | 17 | #endif // MYSEND_H 18 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/02FormToForm.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-09-30T12:59:41 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02FormToForm 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | oneform.cpp \ 17 | twoform.cpp \ 18 | threeform.cpp 19 | 20 | HEADERS += oneform.h \ 21 | twoform.h \ 22 | threeform.h 23 | 24 | FORMS += oneform.ui \ 25 | twoform.ui \ 26 | threeform.ui 27 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/main.cpp: -------------------------------------------------------------------------------- 1 | #include "oneform.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | oneForm w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/oneform.cpp: -------------------------------------------------------------------------------- 1 | #include "oneform.h" 2 | #include "ui_oneform.h" 3 | #include 4 | 5 | oneForm::oneForm(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::oneForm) 8 | { 9 | ui->setupUi(this); 10 | 11 | Init(); 12 | } 13 | 14 | oneForm::~oneForm() 15 | { 16 | delete ui; 17 | delete twoform; 18 | } 19 | 20 | //function 21 | void oneForm::Init(){ 22 | connect(ui->btn_gotwo, SIGNAL(clicked(bool)), 23 | this, SLOT(doProcessClinkGoTwoForm(bool))); 24 | 25 | 26 | twoform = new twoForm(); 27 | connect(twoform, SIGNAL(SignalBackOneForm(QString)), 28 | this, SLOT(doProcessSignalBackOneForm(QString))); 29 | } 30 | //end function 31 | 32 | //slots 33 | void oneForm::doProcessClinkGoTwoForm(bool){ 34 | twoform->show(); 35 | this->hide(); 36 | } 37 | void oneForm::doProcessSignalBackOneForm(QString str){ 38 | qDebug() << str << endl; 39 | this->show(); 40 | } 41 | //end slots 42 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/oneform.h: -------------------------------------------------------------------------------- 1 | #ifndef ONEFORM_H 2 | #define ONEFORM_H 3 | 4 | #include 5 | #include "twoform.h" 6 | 7 | namespace Ui { 8 | class oneForm; 9 | } 10 | 11 | class oneForm : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit oneForm(QWidget *parent = 0); 17 | ~oneForm(); 18 | 19 | private: 20 | Ui::oneForm *ui; 21 | twoForm *twoform; 22 | 23 | void Init(); 24 | 25 | private slots: 26 | void doProcessClinkGoTwoForm(bool); 27 | void doProcessSignalBackOneForm(QString); 28 | }; 29 | 30 | #endif // ONEFORM_H 31 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/threeform.cpp: -------------------------------------------------------------------------------- 1 | #include "threeform.h" 2 | #include "ui_threeform.h" 3 | 4 | threeForm::threeForm(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::threeForm) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | threeForm::~threeForm() 12 | { 13 | delete ui; 14 | } 15 | 16 | void threeForm::on_btn_backtwo_clicked() 17 | { 18 | this->hide(); 19 | emit SignalBackTwoForm(); 20 | } 21 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/threeform.h: -------------------------------------------------------------------------------- 1 | #ifndef THREEFORM_H 2 | #define THREEFORM_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class threeForm; 8 | } 9 | 10 | class threeForm : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit threeForm(QWidget *parent = 0); 16 | ~threeForm(); 17 | 18 | private slots: 19 | void on_btn_backtwo_clicked(); 20 | 21 | private: 22 | Ui::threeForm *ui; 23 | 24 | signals: 25 | void SignalBackTwoForm(); 26 | }; 27 | 28 | #endif // THREEFORM_H 29 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/twoform.cpp: -------------------------------------------------------------------------------- 1 | #include "twoform.h" 2 | #include "ui_twoform.h" 3 | 4 | twoForm::twoForm(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::twoForm) 7 | { 8 | ui->setupUi(this); 9 | 10 | Init(); 11 | } 12 | 13 | twoForm::~twoForm() 14 | { 15 | delete ui; 16 | } 17 | 18 | //function 19 | void twoForm::Init(){ 20 | connect(ui->btn_backone, SIGNAL(clicked(bool)), 21 | this, SLOT(doProcessClinkBackOneForm(bool))); 22 | 23 | threeform = new threeForm(); 24 | connect(threeform, SIGNAL(SignalBackTwoForm()), 25 | this, SLOT(doPorcessSignalBackTwoForm())); 26 | 27 | connect(ui->btn_gothree, SIGNAL(clicked(bool)), 28 | this, SLOT(doProcessClinkGoThreeForm(bool))); 29 | } 30 | //end function 31 | 32 | //slots 33 | void twoForm::doProcessClinkBackOneForm(bool){ 34 | emit SignalBackOneForm("我是第二个页面,现在准备返回第一个页面"); 35 | this->hide(); 36 | } 37 | void twoForm::doProcessClinkGoThreeForm(bool){ 38 | this->hide(); 39 | threeform->show(); 40 | } 41 | void twoForm::doPorcessSignalBackTwoForm(){ 42 | this->show(); 43 | } 44 | //end slots 45 | -------------------------------------------------------------------------------- /基础知识/02/03FormToForm/twoform.h: -------------------------------------------------------------------------------- 1 | #ifndef TWOFORM_H 2 | #define TWOFORM_H 3 | 4 | #include 5 | #include "threeform.h" 6 | 7 | namespace Ui { 8 | class twoForm; 9 | } 10 | 11 | class twoForm : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit twoForm(QWidget *parent = 0); 17 | ~twoForm(); 18 | 19 | private: 20 | Ui::twoForm *ui; 21 | threeForm *threeform; 22 | 23 | 24 | void Init(); 25 | 26 | private slots: 27 | void doProcessClinkBackOneForm(bool); 28 | void doProcessClinkGoThreeForm(bool); 29 | void doPorcessSignalBackTwoForm(); 30 | 31 | signals: 32 | void SignalBackOneForm(QString); 33 | }; 34 | 35 | #endif // TWOFORM_H 36 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/04staticFormToForm.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-09-30T14:43:53 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 04staticFormToForm 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | oneform.cpp \ 17 | twoform.cpp \ 18 | threeform.cpp \ 19 | common.cpp 20 | 21 | HEADERS += oneform.h \ 22 | twoform.h \ 23 | threeform.h \ 24 | common.h 25 | 26 | FORMS += oneform.ui \ 27 | twoform.ui \ 28 | threeform.ui 29 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/common.cpp: -------------------------------------------------------------------------------- 1 | #include "common.h" 2 | 3 | OneForm *Common::oneform = NULL; 4 | TwoForm *Common::twoform = NULL; 5 | ThreeForm *Common::threeform = NULL; 6 | 7 | Common::Common() 8 | { 9 | 10 | } 11 | 12 | void Common::Init(){ 13 | oneform = new OneForm(); 14 | twoform = new TwoForm(); 15 | threeform = new ThreeForm(); 16 | } 17 | void Common::FormShow(formType type){ 18 | if(type == one){ 19 | oneform->show(); 20 | twoform->hide(); 21 | threeform->hide(); 22 | } 23 | else if(type == two){ 24 | oneform->hide(); 25 | twoform->show(); 26 | threeform->hide(); 27 | } 28 | else if(type == three){ 29 | oneform->hide(); 30 | twoform->hide(); 31 | threeform->show(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/common.h: -------------------------------------------------------------------------------- 1 | #ifndef COMMON_H 2 | #define COMMON_H 3 | #include "oneform.h" 4 | #include "twoform.h" 5 | #include "threeform.h" 6 | 7 | class Common 8 | { 9 | public: 10 | Common(); 11 | 12 | enum formType{ 13 | one, two, three 14 | }; 15 | 16 | static void Init(); //初始化窗体成员函数 17 | static void FormShow(formType); 18 | 19 | private: 20 | static OneForm *oneform; 21 | static TwoForm *twoform; 22 | static ThreeForm *threeform; 23 | }; 24 | 25 | #endif // COMMON_H 26 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/main.cpp: -------------------------------------------------------------------------------- 1 | #include "oneform.h" 2 | #include 3 | #include "common.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | Common::Init(); 9 | Common::FormShow(Common::one); 10 | 11 | return a.exec(); 12 | } 13 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/oneform.cpp: -------------------------------------------------------------------------------- 1 | #include "oneform.h" 2 | #include "ui_oneform.h" 3 | #include "common.h" 4 | 5 | OneForm::OneForm(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::OneForm) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | OneForm::~OneForm() 13 | { 14 | delete ui; 15 | } 16 | 17 | void OneForm::on_btn_gotwo_clicked() 18 | { 19 | Common::FormShow(Common::two); 20 | } 21 | 22 | void OneForm::on_btn_gothree_clicked() 23 | { 24 | Common::FormShow(Common::three); 25 | } 26 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/oneform.h: -------------------------------------------------------------------------------- 1 | #ifndef ONEFORM_H 2 | #define ONEFORM_H 3 | 4 | #include 5 | 6 | 7 | namespace Ui { 8 | class OneForm; 9 | } 10 | 11 | class OneForm : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit OneForm(QWidget *parent = 0); 17 | ~OneForm(); 18 | 19 | private slots: 20 | void on_btn_gotwo_clicked(); 21 | 22 | void on_btn_gothree_clicked(); 23 | 24 | private: 25 | Ui::OneForm *ui; 26 | }; 27 | 28 | #endif // ONEFORM_H 29 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/threeform.cpp: -------------------------------------------------------------------------------- 1 | #include "threeform.h" 2 | #include "ui_threeform.h" 3 | #include "common.h" 4 | 5 | ThreeForm::ThreeForm(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::ThreeForm) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | ThreeForm::~ThreeForm() 13 | { 14 | delete ui; 15 | } 16 | 17 | void ThreeForm::on_btn_goone_clicked() 18 | { 19 | Common::FormShow(Common::one); 20 | } 21 | 22 | void ThreeForm::on_btn_gotwo_clicked() 23 | { 24 | Common::FormShow(Common::two); 25 | } 26 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/threeform.h: -------------------------------------------------------------------------------- 1 | #ifndef THREEFORM_H 2 | #define THREEFORM_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class ThreeForm; 8 | } 9 | 10 | class ThreeForm : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit ThreeForm(QWidget *parent = 0); 16 | ~ThreeForm(); 17 | 18 | private slots: 19 | void on_btn_goone_clicked(); 20 | 21 | void on_btn_gotwo_clicked(); 22 | 23 | private: 24 | Ui::ThreeForm *ui; 25 | }; 26 | 27 | #endif // THREEFORM_H 28 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/twoform.cpp: -------------------------------------------------------------------------------- 1 | #include "twoform.h" 2 | #include "ui_twoform.h" 3 | #include "common.h" 4 | 5 | TwoForm::TwoForm(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::TwoForm) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | TwoForm::~TwoForm() 13 | { 14 | delete ui; 15 | } 16 | 17 | void TwoForm::on_btn_gothree_clicked() 18 | { 19 | Common::FormShow(Common::three); 20 | } 21 | 22 | void TwoForm::on_btn_goone_clicked() 23 | { 24 | Common::FormShow(Common::one); 25 | } 26 | -------------------------------------------------------------------------------- /基础知识/02/04staticFormToForm/twoform.h: -------------------------------------------------------------------------------- 1 | #ifndef TWOFORM_H 2 | #define TWOFORM_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class TwoForm; 8 | } 9 | 10 | class TwoForm : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit TwoForm(QWidget *parent = 0); 16 | ~TwoForm(); 17 | 18 | private slots: 19 | void on_btn_gothree_clicked(); 20 | 21 | void on_btn_goone_clicked(); 22 | 23 | private: 24 | Ui::TwoForm *ui; 25 | }; 26 | 27 | #endif // TWOFORM_H 28 | -------------------------------------------------------------------------------- /基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/01calc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/01calc -------------------------------------------------------------------------------- /基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mycalc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mycalc.o -------------------------------------------------------------------------------- /基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/mycalc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-01calc-Desktop_Qt_5_5_1_GCC_64bit-Debug/mycalc.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/02FormToForm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/02FormToForm -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_oneform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_oneform.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_threeform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_threeform.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twoform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twoform.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/oneform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/oneform.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/threeform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/threeform.o -------------------------------------------------------------------------------- /基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/twoform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-02FormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/twoform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/04staticFormToForm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/04staticFormToForm -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/common.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/common.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_oneform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_oneform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_threeform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_threeform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twoform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_twoform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/oneform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/oneform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/threeform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/threeform.o -------------------------------------------------------------------------------- /基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/twoform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/build-04staticFormToForm-Desktop_Qt_5_5_1_GCC_64bit-Debug/twoform.o -------------------------------------------------------------------------------- /基础知识/02/day02: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/基础知识/02/day02 -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp 17 | 18 | HEADERS += widget.h 19 | 20 | FORMS += widget.ui 21 | 22 | RESOURCES += \ 23 | res.qrc 24 | -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/01设计UI/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | Widget::~Widget() 12 | { 13 | delete ui; 14 | } 15 | -------------------------------------------------------------------------------- /播放器/01设计UI/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Widget; 8 | } 9 | 10 | class Widget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Widget(QWidget *parent = 0); 16 | ~Widget(); 17 | 18 | private: 19 | Ui::Widget *ui; 20 | }; 21 | 22 | #endif // WIDGET_H 23 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/03打开视频文件/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | void OpenFile(quint64 winid); 15 | 16 | signals: 17 | 18 | public slots: 19 | 20 | private: 21 | QStringList playList; 22 | 23 | 24 | void Init(); 25 | int playVideo(const QString filename, quint64 winid); 26 | }; 27 | 28 | #endif // MYPROCESS_H 29 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | Init(); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | //---funciton 18 | void Widget::Init(){ 19 | processPlayer = new myProcess(this); 20 | 21 | } 22 | //end 23 | 24 | 25 | //---slots 26 | void Widget::on_btn_open_clicked() 27 | { 28 | processPlayer->OpenFile(ui->lbl_show->winId()); 29 | } 30 | //end 31 | -------------------------------------------------------------------------------- /播放器/03打开视频文件/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | #include "myprocess.h" 7 | 8 | namespace Ui { 9 | class Widget; 10 | } 11 | 12 | class Widget : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit Widget(QWidget *parent = 0); 18 | ~Widget(); 19 | 20 | private slots: 21 | void on_btn_open_clicked(); 22 | 23 | private: 24 | Ui::Widget *ui; 25 | 26 | myProcess *processPlayer; 27 | 28 | void Init(); 29 | }; 30 | 31 | #endif // WIDGET_H 32 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/04播放与暂停,上一首,下一首/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | void OpenFile(quint64 winid); 15 | void PlayOrPause(); 16 | void PlayPrevious(); 17 | void PlayNext(); 18 | 19 | signals: 20 | 21 | public slots: 22 | 23 | private: 24 | QStringList playList; 25 | int playIndex; 26 | quint64 playWinID; 27 | 28 | 29 | void Init(); 30 | int playVideo(const QString filename, quint64 winid); 31 | }; 32 | 33 | #endif // MYPROCESS_H 34 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | Init(); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | //---funciton 18 | void Widget::Init(){ 19 | processPlayer = new myProcess(this); 20 | 21 | } 22 | //end 23 | 24 | 25 | //---slots 26 | void Widget::on_btn_open_clicked() 27 | { 28 | processPlayer->OpenFile(ui->lbl_show->winId()); 29 | } 30 | //end 31 | 32 | void Widget::on_btn_previous_clicked() 33 | { 34 | processPlayer->PlayPrevious(); 35 | } 36 | 37 | void Widget::on_btn_play_clicked() 38 | { 39 | processPlayer->PlayOrPause(); 40 | } 41 | 42 | void Widget::on_btn_next_clicked() 43 | { 44 | processPlayer->PlayNext(); 45 | } 46 | 47 | 48 | //---evnets 49 | void Widget::closeEvent(QCloseEvent *e){ 50 | processPlayer->close(); 51 | e->accept(); 52 | } 53 | //end 54 | -------------------------------------------------------------------------------- /播放器/04播放与暂停,上一首,下一首/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | #include "myprocess.h" 8 | 9 | namespace Ui { 10 | class Widget; 11 | } 12 | 13 | class Widget : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit Widget(QWidget *parent = 0); 19 | ~Widget(); 20 | 21 | 22 | protected: 23 | void closeEvent(QCloseEvent *); 24 | 25 | private slots: 26 | void on_btn_open_clicked(); 27 | 28 | void on_btn_previous_clicked(); 29 | 30 | void on_btn_play_clicked(); 31 | 32 | void on_btn_next_clicked(); 33 | 34 | private: 35 | Ui::Widget *ui; 36 | 37 | myProcess *processPlayer; 38 | 39 | void Init(); 40 | }; 41 | 42 | #endif // WIDGET_H 43 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.1音量调节/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | void PlayOpenFile(quint64 winid); 15 | void PlayOrPause(); 16 | void PlayPrevious(); 17 | void PlayNext(); 18 | void PlayChangeVoice(int value); 19 | 20 | signals: 21 | 22 | public slots: 23 | 24 | private: 25 | QStringList playList; 26 | int playIndex; 27 | quint64 playWinID; 28 | 29 | 30 | void Init(); 31 | int playVideo(const QString filename, quint64 winid); 32 | }; 33 | 34 | #endif // MYPROCESS_H 35 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | Init(); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | //---funciton 18 | void Widget::Init(){ 19 | processPlayer = new myProcess(this); 20 | 21 | } 22 | 23 | //end 24 | 25 | 26 | //---slots 27 | void Widget::on_btn_open_clicked() 28 | { 29 | processPlayer->PlayOpenFile(ui->lbl_show->winId()); 30 | } 31 | void Widget::on_btn_previous_clicked() 32 | { 33 | processPlayer->PlayPrevious(); 34 | } 35 | void Widget::on_btn_play_clicked() 36 | { 37 | processPlayer->PlayOrPause(); 38 | } 39 | 40 | void Widget::on_btn_next_clicked() 41 | { 42 | processPlayer->PlayNext(); 43 | } 44 | void Widget::on_dial_valueChanged(int value) 45 | { 46 | processPlayer->PlayChangeVoice(value); 47 | } 48 | //end 49 | 50 | 51 | 52 | //---evnets 53 | void Widget::closeEvent(QCloseEvent *e){ 54 | processPlayer->close(); 55 | e->accept(); 56 | } 57 | //end 58 | 59 | 60 | -------------------------------------------------------------------------------- /播放器/05.1音量调节/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include "myprocess.h" 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | 23 | protected: 24 | void closeEvent(QCloseEvent *); 25 | 26 | private slots: 27 | void on_btn_open_clicked(); 28 | 29 | void on_btn_previous_clicked(); 30 | 31 | void on_btn_play_clicked(); 32 | 33 | void on_btn_next_clicked(); 34 | 35 | void on_dial_valueChanged(int value); 36 | 37 | private: 38 | Ui::Widget *ui; 39 | 40 | myProcess *processPlayer; 41 | 42 | void Init(); 43 | }; 44 | 45 | #endif // WIDGET_H 46 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/05.2设置静音/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | void PlayOpenFile(quint64 winid); 15 | void PlayOrPause(); 16 | void PlayPrevious(); 17 | void PlayNext(); 18 | void PlayChangeVoice(int value); 19 | void PlaySetSilent(bool isSilent); 20 | 21 | signals: 22 | 23 | public slots: 24 | 25 | private: 26 | QStringList playList; 27 | int playIndex; 28 | quint64 playWinID; 29 | 30 | 31 | void Init(); 32 | int playVideo(const QString filename, quint64 winid); 33 | }; 34 | 35 | #endif // MYPROCESS_H 36 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | Init(); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | //---funciton 18 | void Widget::Init(){ 19 | processPlayer = new myProcess(this); 20 | 21 | } 22 | 23 | //end 24 | 25 | 26 | //---slots 27 | void Widget::on_btn_open_clicked() 28 | { 29 | processPlayer->PlayOpenFile(ui->lbl_show->winId()); 30 | } 31 | void Widget::on_btn_previous_clicked() 32 | { 33 | processPlayer->PlayPrevious(); 34 | } 35 | void Widget::on_btn_play_clicked() 36 | { 37 | processPlayer->PlayOrPause(); 38 | } 39 | 40 | void Widget::on_btn_next_clicked() 41 | { 42 | processPlayer->PlayNext(); 43 | } 44 | void Widget::on_dial_valueChanged(int value) 45 | { 46 | processPlayer->PlayChangeVoice(value); 47 | } 48 | void Widget::on_btn_voice_clicked() 49 | { 50 | processPlayer->PlaySetSilent(true); 51 | } 52 | 53 | //end 54 | 55 | 56 | 57 | //---evnets 58 | void Widget::closeEvent(QCloseEvent *e){ 59 | processPlayer->close(); 60 | e->accept(); 61 | } 62 | //end 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /播放器/05.2设置静音/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include "myprocess.h" 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | 23 | protected: 24 | void closeEvent(QCloseEvent *); 25 | 26 | private slots: 27 | void on_btn_open_clicked(); 28 | 29 | void on_btn_previous_clicked(); 30 | 31 | void on_btn_play_clicked(); 32 | 33 | void on_btn_next_clicked(); 34 | 35 | void on_dial_valueChanged(int value); 36 | 37 | void on_btn_voice_clicked(); 38 | 39 | private: 40 | Ui::Widget *ui; 41 | 42 | myProcess *processPlayer; 43 | 44 | void Init(); 45 | }; 46 | 47 | #endif // WIDGET_H 48 | -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/06界面控制逻辑完善/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | int PlayOpenFile(quint64 winid); 15 | int PlayOrPause(); 16 | void PlayPrevious(); 17 | void PlayNext(); 18 | void PlayChangeVoice(int value); 19 | int PlaySetSilent(bool isSilent); 20 | 21 | signals: 22 | 23 | public slots: 24 | 25 | private: 26 | QStringList playList; 27 | int playIndex; 28 | quint64 playWinID; 29 | 30 | 31 | void Init(); 32 | int playVideo(const QString filename, quint64 winid); 33 | }; 34 | 35 | #endif // MYPROCESS_H 36 | -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/06界面控制逻辑完善/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include "myprocess.h" 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | 23 | protected: 24 | void closeEvent(QCloseEvent *); 25 | 26 | private slots: 27 | void on_btn_open_clicked(); 28 | 29 | void on_btn_previous_clicked(); 30 | 31 | void on_btn_play_clicked(); 32 | 33 | void on_btn_next_clicked(); 34 | 35 | void on_dial_valueChanged(int value); 36 | 37 | void on_btn_voice_clicked(); 38 | 39 | private: 40 | Ui::Widget *ui; 41 | myProcess *processPlayer; 42 | bool isPlay; 43 | bool isSlent; 44 | 45 | void Init(); 46 | }; 47 | 48 | #endif // WIDGET_H 49 | -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.1快进,后退/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class myProcess : public QProcess 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit myProcess(QWidget *parent = 0); 13 | 14 | int PlayOpenFile(quint64 winid); 15 | int PlayOrPause(); 16 | void PlayPrevious(); 17 | void PlayNext(); 18 | void PlayChangeVoice(int value); 19 | int PlaySetSilent(bool isSilent); 20 | void PlaySeek(int value); 21 | 22 | signals: 23 | 24 | public slots: 25 | 26 | private: 27 | QStringList playList; 28 | int playIndex; 29 | quint64 playWinID; 30 | 31 | 32 | void Init(); 33 | int playVideo(const QString filename, quint64 winid); 34 | }; 35 | 36 | #endif // MYPROCESS_H 37 | -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/07.1快进,后退/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include "myprocess.h" 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | 23 | protected: 24 | void closeEvent(QCloseEvent *); 25 | 26 | private slots: 27 | void on_btn_open_clicked(); 28 | 29 | void on_btn_previous_clicked(); 30 | 31 | void on_btn_play_clicked(); 32 | 33 | void on_btn_next_clicked(); 34 | 35 | void on_dial_valueChanged(int value); 36 | 37 | void on_btn_voice_clicked(); 38 | 39 | void on_horizontalSlider_valueChanged(int value); 40 | 41 | private: 42 | Ui::Widget *ui; 43 | myProcess *processPlayer; 44 | bool isPlay; 45 | bool isSlent; 46 | 47 | void Init(); 48 | }; 49 | 50 | #endif // WIDGET_H 51 | -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui testlib 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp 18 | 19 | HEADERS += widget.h \ 20 | myprocess.h 21 | 22 | FORMS += widget.ui 23 | 24 | RESOURCES += \ 25 | res.qrc 26 | -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/07.2获取播放进度/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/myprocess.h: -------------------------------------------------------------------------------- 1 | #ifndef MYPROCESS_H 2 | #define MYPROCESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | class myProcess : public QProcess 12 | { 13 | Q_OBJECT 14 | public: 15 | explicit myProcess(QWidget *parent = 0); 16 | 17 | int PlayOpenFile(quint64 winid); 18 | int PlayOrPause(bool isPlay); 19 | void PlayPrevious(); 20 | void PlayNext(); 21 | void PlayChangeVoice(int value); 22 | int PlaySetSilent(bool isSilent); 23 | void PlaySeek(int value); 24 | void ProcessClose(); 25 | 26 | 27 | signals: 28 | void SignalSendTimePosition(float time); 29 | void SignalSendPercentPosition(int percent); 30 | 31 | private slots: 32 | void doProcessTimeout(); 33 | void doProcessReadyRead(); 34 | void doProcessFinished(int); 35 | 36 | private: 37 | QStringList playList; 38 | int playIndex; 39 | quint64 playWinID; 40 | QTimer *myTimer; //百分比表示的进度 41 | 42 | 43 | 44 | void Init(); 45 | int playVideo(const QString filename, quint64 winid); 46 | void PlayLoop(); //循环播放 47 | }; 48 | 49 | #endif // MYPROCESS_H 50 | -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/07.2获取播放进度/01myPlayer/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #include "myprocess.h" 9 | 10 | namespace Ui { 11 | class Widget; 12 | } 13 | 14 | class Widget : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit Widget(QWidget *parent = 0); 20 | ~Widget(); 21 | 22 | 23 | protected: 24 | void closeEvent(QCloseEvent *); 25 | 26 | private slots: 27 | void on_btn_open_clicked(); 28 | 29 | void on_btn_previous_clicked(); 30 | 31 | void on_btn_play_clicked(); 32 | 33 | void on_btn_next_clicked(); 34 | 35 | void on_dial_valueChanged(int value); 36 | 37 | void on_btn_voice_clicked(); 38 | 39 | void on_horizontalSlider_valueChanged(int value); 40 | 41 | 42 | void doProcessTimePosition(float); 43 | void doProcessPercentPosition(int); 44 | 45 | 46 | void on_horizontalSlider_sliderPressed(); 47 | 48 | void on_horizontalSlider_sliderReleased(); 49 | 50 | private: 51 | Ui::Widget *ui; 52 | myProcess *processPlayer; 53 | bool isPlay; 54 | bool isSlent; 55 | bool isPressed; //是否人为设置值 56 | 57 | void Init(); 58 | }; 59 | 60 | #endif // WIDGET_H 61 | -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui testlib 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp \ 18 | mylabel.cpp 19 | 20 | HEADERS += widget.h \ 21 | myprocess.h \ 22 | mylabel.h 23 | 24 | FORMS += widget.ui 25 | 26 | RESOURCES += \ 27 | res.qrc 28 | -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/mylabel.h: -------------------------------------------------------------------------------- 1 | #ifndef MYLABEL_H 2 | #define MYLABEL_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class myLabel : public QLabel 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit myLabel(QWidget *parent = 0); 18 | 19 | signals: 20 | void SignalSendPlayVideo(QList); 21 | void SignalOpenVideo(); 22 | void SignalCapturePic(); 23 | 24 | 25 | private slots: 26 | void doProcessOpenVideo(bool); 27 | void doProcessCapturePicture(bool); 28 | 29 | 30 | protected: 31 | void dragEnterEvent(QDragEnterEvent *); 32 | void dropEvent(QDropEvent *); 33 | void contextMenuEvent(QContextMenuEvent *); 34 | }; 35 | 36 | #endif // MYLABEL_H 37 | -------------------------------------------------------------------------------- /播放器/08拖动播放/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myPlayer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myPlayer -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylabel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylabel.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_myprocess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_myprocess.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylabel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylabel.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/myprocess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/myprocess.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/qrc_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/qrc_res.o -------------------------------------------------------------------------------- /播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/08拖动播放/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/01myPlayer.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-17T10:15:31 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui testlib 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01myPlayer 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | widget.cpp \ 17 | myprocess.cpp \ 18 | mylabel.cpp 19 | 20 | HEADERS += widget.h \ 21 | myprocess.h \ 22 | mylabel.h 23 | 24 | FORMS += widget.ui 25 | 26 | RESOURCES += \ 27 | res.qrc 28 | -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/Bear0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/Bear0.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/add.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/background.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/background2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/background2.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/bomb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/bomb.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/mob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/mob.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/next.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/open.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/open2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/open2.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/open3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/open3.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/pause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/pause.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/play.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/previous.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/silent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/silent.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/silent2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/silent2.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/images/voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/01myPlayer/images/voice.png -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/main.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/mylabel.h: -------------------------------------------------------------------------------- 1 | #ifndef MYLABEL_H 2 | #define MYLABEL_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | class myLabel : public QLabel 14 | { 15 | Q_OBJECT 16 | public: 17 | explicit myLabel(QWidget *parent = 0); 18 | 19 | signals: 20 | void SignalSendPlayVideo(QList); 21 | void SignalOpenVideo(); 22 | void SignalCapturePic(); 23 | 24 | 25 | private slots: 26 | void doProcessOpenVideo(bool); 27 | void doProcessCapturePicture(bool); 28 | 29 | 30 | protected: 31 | void dragEnterEvent(QDragEnterEvent *); 32 | void dropEvent(QDropEvent *); 33 | void contextMenuEvent(QContextMenuEvent *); 34 | }; 35 | 36 | #endif // MYLABEL_H 37 | -------------------------------------------------------------------------------- /播放器/09右键菜单/01myPlayer/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/add.png 4 | images/background.png 5 | images/background2.png 6 | images/Bear0.png 7 | images/bomb.png 8 | images/mob.png 9 | images/next.png 10 | images/open.png 11 | images/open2.png 12 | images/open3.png 13 | images/pause.png 14 | images/play.png 15 | images/previous.png 16 | images/silent.png 17 | images/silent2.png 18 | images/voice.png 19 | 20 | 21 | -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myPlayer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/01myPlayer -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylabel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mylabel.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_myprocess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_myprocess.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_widget.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylabel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/mylabel.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/myprocess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/myprocess.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/qrc_res.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/qrc_res.o -------------------------------------------------------------------------------- /播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/播放器/09右键菜单/build-01myPlayer-Desktop_Qt_5_5_1_GCC_64bit-Debug/widget.o -------------------------------------------------------------------------------- /数据库/human.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/数据库/human.db -------------------------------------------------------------------------------- /数据库/sqlite-snapshot-201606031859.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/数据库/sqlite-snapshot-201606031859.tar.gz -------------------------------------------------------------------------------- /记事本/01notepad.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-10T09:58:39 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui printsupport 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 01notepad 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | mynotepad.cpp \ 17 | subtext.cpp \ 18 | searchdialog.cpp \ 19 | replacedialog.cpp 20 | 21 | HEADERS += mynotepad.h \ 22 | subtext.h \ 23 | searchdialog.h \ 24 | replacedialog.h 25 | 26 | FORMS += mynotepad.ui \ 27 | searchdialog.ui \ 28 | replacedialog.ui 29 | 30 | RESOURCES += \ 31 | res.qrc 32 | -------------------------------------------------------------------------------- /记事本/images/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/about.png -------------------------------------------------------------------------------- /记事本/images/copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/copy.png -------------------------------------------------------------------------------- /记事本/images/cut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/cut.png -------------------------------------------------------------------------------- /记事本/images/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/exit.png -------------------------------------------------------------------------------- /记事本/images/new.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/new.png -------------------------------------------------------------------------------- /记事本/images/next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/next.png -------------------------------------------------------------------------------- /记事本/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/open.png -------------------------------------------------------------------------------- /记事本/images/paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/paste.png -------------------------------------------------------------------------------- /记事本/images/previous.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/previous.png -------------------------------------------------------------------------------- /记事本/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/redo.png -------------------------------------------------------------------------------- /记事本/images/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/save.png -------------------------------------------------------------------------------- /记事本/images/saveAs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/saveAs.png -------------------------------------------------------------------------------- /记事本/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/记事本/images/undo.png -------------------------------------------------------------------------------- /记事本/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mynotepad.h" 2 | #include 3 | #include "searchdialog.h" 4 | #include "replacedialog.h" 5 | 6 | int main(int argc, char *argv[]) 7 | { 8 | QApplication a(argc, argv); 9 | myNotepad w; 10 | w.show(); 11 | // SearchDialog s; 12 | // s.show(); 13 | // ReplaceDialog r; 14 | // r.show(); 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /记事本/replacedialog.cpp: -------------------------------------------------------------------------------- 1 | #include "replacedialog.h" 2 | #include "ui_replacedialog.h" 3 | 4 | ReplaceDialog::ReplaceDialog(QWidget *parent) : 5 | QDialog(parent), 6 | ui(new Ui::ReplaceDialog) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | ReplaceDialog::~ReplaceDialog() 12 | { 13 | delete ui; 14 | } 15 | 16 | void ReplaceDialog::on_btn_next_clicked() 17 | { 18 | QString searchStr = ui->ledit_searchStr->text(); 19 | if(searchStr.isEmpty())return; 20 | emit SignalSearchNextStr(searchStr, ui->cbox_case->isChecked()); 21 | } 22 | 23 | void ReplaceDialog::on_btn_replace_clicked() 24 | { 25 | QString searchStr = ui->ledit_searchStr->text(); 26 | if(searchStr.isEmpty())return; 27 | QString replaceStr = ui->ledit_replaceStr->text(); 28 | SignalReplaceStr(searchStr, replaceStr, ui->cbox_case->isChecked(), false); 29 | } 30 | 31 | void ReplaceDialog::on_btn_replaceAll_clicked() 32 | { 33 | QString searchStr = ui->ledit_searchStr->text(); 34 | if(searchStr.isEmpty())return; 35 | QString replaceStr = ui->ledit_replaceStr->text(); 36 | SignalReplaceStr(searchStr, replaceStr, ui->cbox_case->isChecked(), true); 37 | } 38 | 39 | void ReplaceDialog::on_btn_cancel_clicked() 40 | { 41 | this->close(); 42 | } 43 | -------------------------------------------------------------------------------- /记事本/replacedialog.h: -------------------------------------------------------------------------------- 1 | #ifndef REPLACEDIALOG_H 2 | #define REPLACEDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class ReplaceDialog; 8 | } 9 | 10 | class ReplaceDialog : public QDialog 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit ReplaceDialog(QWidget *parent = 0); 16 | ~ReplaceDialog(); 17 | 18 | private slots: 19 | void on_btn_next_clicked(); 20 | 21 | void on_btn_replace_clicked(); 22 | 23 | void on_btn_replaceAll_clicked(); 24 | 25 | void on_btn_cancel_clicked(); 26 | 27 | private: 28 | Ui::ReplaceDialog *ui; 29 | 30 | signals: 31 | void SignalSearchNextStr(const QString searchStr, bool caseSensitive); 32 | void SignalReplaceStr(const QString searchStr, const QString replaceStr, bool caseSensitive, bool replaceAll); 33 | }; 34 | 35 | #endif // REPLACEDIALOG_H 36 | -------------------------------------------------------------------------------- /记事本/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/about.png 4 | images/copy.png 5 | images/cut.png 6 | images/exit.png 7 | images/new.png 8 | images/next.png 9 | images/open.png 10 | images/paste.png 11 | images/previous.png 12 | images/redo.png 13 | images/save.png 14 | images/saveAs.png 15 | images/undo.png 16 | 17 | 18 | -------------------------------------------------------------------------------- /记事本/searchdialog.cpp: -------------------------------------------------------------------------------- 1 | #include "searchdialog.h" 2 | #include "ui_searchdialog.h" 3 | 4 | SearchDialog::SearchDialog(QWidget *parent) : 5 | QDialog(parent), 6 | ui(new Ui::SearchDialog) 7 | { 8 | ui->setupUi(this); 9 | ui->groupBox->setStyleSheet(QString("QGroupBox:{border: 3px}")); 10 | 11 | } 12 | 13 | SearchDialog::~SearchDialog() 14 | { 15 | delete ui; 16 | } 17 | 18 | void SearchDialog::on_btn_next_clicked() 19 | { 20 | QString searchStr = ui->ledit_search->text(); 21 | if(searchStr.isEmpty())return; 22 | 23 | emit SignalSendSearchValue(searchStr, ui->cbox_case->isChecked(), ui->rbtn_next->isChecked()); 24 | } 25 | -------------------------------------------------------------------------------- /记事本/searchdialog.h: -------------------------------------------------------------------------------- 1 | #ifndef SEARCHDIALOG_H 2 | #define SEARCHDIALOG_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class SearchDialog; 8 | } 9 | 10 | class SearchDialog : public QDialog 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit SearchDialog(QWidget *parent = 0); 16 | ~SearchDialog(); 17 | 18 | private slots: 19 | void on_btn_next_clicked(); 20 | 21 | private: 22 | Ui::SearchDialog *ui; 23 | 24 | 25 | signals: 26 | void SignalSendSearchValue(const QString searchStr, bool caseSensitive, bool isNext); 27 | }; 28 | 29 | #endif // SEARCHDIALOG_H 30 | -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp 17 | 18 | HEADERS += classchess.h 19 | -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class classChess : public QWidget 9 | { 10 | Q_OBJECT 11 | 12 | public: 13 | classChess(QWidget *parent = 0); 14 | ~classChess(); 15 | 16 | int setChangeBG(const QString bgName); 17 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 18 | 19 | protected: 20 | void paintEvent(QPaintEvent *); 21 | void resizeEvent(QResizeEvent *); 22 | 23 | private: 24 | const int gridNumber; 25 | int gridWidth, gridHeigth; 26 | 27 | QString bgName; 28 | QColor gridLineColor; 29 | Qt::PenStyle gridLineStyle; 30 | int gridLineWidth; 31 | 32 | 33 | void Init(); 34 | 35 | }; 36 | 37 | #endif // CLASSCHESS_H 38 | -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/01画棋盘/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/01画棋盘/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | classChess w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp 17 | 18 | HEADERS += classchess.h 19 | -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class classChess : public QWidget 9 | { 10 | Q_OBJECT 11 | 12 | public: 13 | classChess(QWidget *parent = 0); 14 | ~classChess(); 15 | 16 | enum cheesType{ 17 | Empty = 0, 18 | Black, 19 | White 20 | }; 21 | int setChangeBG(const QString bgName); 22 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 23 | 24 | protected: 25 | void paintEvent(QPaintEvent *); 26 | void resizeEvent(QResizeEvent *); 27 | 28 | private: 29 | const int gridNumber; 30 | int gridWidth, gridHeigth; 31 | 32 | QString bgName; 33 | QColor gridLineColor; 34 | Qt::PenStyle gridLineStyle; 35 | int gridLineWidth; 36 | 37 | const int chessGridNumber; 38 | int chessData[8][8]; 39 | 40 | 41 | void Init(); 42 | void chessInit(); 43 | 44 | }; 45 | 46 | #endif // CLASSCHESS_H 47 | -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/02画棋子/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | classChess w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/02画棋子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp 17 | 18 | HEADERS += classchess.h 19 | -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | 26 | protected: 27 | void paintEvent(QPaintEvent *); 28 | void resizeEvent(QResizeEvent *); 29 | void mousePressEvent(QMouseEvent *); 30 | 31 | private: 32 | const int gridNumber; 33 | int gridWidth, gridHeigth; 34 | 35 | QString bgName; 36 | QColor gridLineColor; 37 | Qt::PenStyle gridLineStyle; 38 | int gridLineWidth; 39 | 40 | const int chessGridNumber; 41 | int chessData[8][8]; 42 | 43 | 44 | void Init(); 45 | void chessInit(); 46 | 47 | }; 48 | 49 | #endif // CLASSCHESS_H 50 | -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/03普通落子/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | classChess w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/03普通落子/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp 17 | 18 | HEADERS += classchess.h 19 | -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | int setChangeChessData(void *p); 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | void resizeEvent(QResizeEvent *); 30 | void mousePressEvent(QMouseEvent *); 31 | 32 | private: 33 | const int gridNumber; 34 | int gridWidth, gridHeigth; 35 | 36 | QString bgName; 37 | QColor gridLineColor; 38 | Qt::PenStyle gridLineStyle; 39 | int gridLineWidth; 40 | 41 | const int chessGridNumber; 42 | int chessData[8][8]; 43 | 44 | 45 | void Init(); 46 | void chessInit(); 47 | 48 | signals: 49 | void SignalSendXY(int x, int y); 50 | 51 | }; 52 | 53 | #endif // CLASSCHESS_H 54 | -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/04增加信号/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | classChess w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/04增加信号/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp \ 17 | mainform.cpp 18 | 19 | HEADERS += classchess.h \ 20 | mainform.h 21 | 22 | FORMS += \ 23 | mainform.ui 24 | -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | int setChangeChessData(void *p); 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | void resizeEvent(QResizeEvent *); 30 | void mousePressEvent(QMouseEvent *); 31 | 32 | private: 33 | const int gridNumber; 34 | int gridWidth, gridHeigth; 35 | 36 | QString bgName; 37 | QColor gridLineColor; 38 | Qt::PenStyle gridLineStyle; 39 | int gridLineWidth; 40 | 41 | const int chessGridNumber; 42 | int chessData[8][8]; 43 | 44 | 45 | void Init(); 46 | void chessInit(); 47 | 48 | signals: 49 | void SignalSendXY(int x, int y); 50 | 51 | }; 52 | 53 | #endif // CLASSCHESS_H 54 | -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | #include "mainform.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | // classChess w; 9 | // w.show(); 10 | MainForm mf; 11 | mf.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/02myChess/mainform.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINFORM_H 2 | #define MAINFORM_H 3 | 4 | #include 5 | #include 6 | #include "classchess.h" 7 | 8 | namespace Ui { 9 | class MainForm; 10 | } 11 | 12 | class MainForm : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit MainForm(QWidget *parent = 0); 18 | ~MainForm(); 19 | 20 | private: 21 | Ui::MainForm *ui; 22 | classChess *myChess; 23 | 24 | int chessData[8][8]; 25 | int blackNum; 26 | int whiteNum; 27 | classChess::cheesType currentRole; 28 | 29 | 30 | 31 | void Init(); 32 | void chessInit(); 33 | 34 | private slots: 35 | void doProcessGetXY(int x, int y); 36 | 37 | void on_btn_pvp_clicked(); 38 | 39 | protected: 40 | void paintEvent(QPaintEvent *); 41 | 42 | }; 43 | 44 | #endif // MAINFORM_H 45 | -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/05增加UI界面/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp \ 17 | mainform.cpp 18 | 19 | HEADERS += classchess.h \ 20 | mainform.h 21 | 22 | FORMS += \ 23 | mainform.ui 24 | -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | int setChangeChessData(void *p); 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | void resizeEvent(QResizeEvent *); 30 | void mousePressEvent(QMouseEvent *); 31 | 32 | private: 33 | const int gridNumber; 34 | int gridWidth, gridHeigth; 35 | 36 | QString bgName; 37 | QColor gridLineColor; 38 | Qt::PenStyle gridLineStyle; 39 | int gridLineWidth; 40 | 41 | const int chessGridNumber; 42 | int chessData[8][8]; 43 | 44 | 45 | void Init(); 46 | void chessInit(); 47 | 48 | signals: 49 | void SignalSendXY(int x, int y); 50 | 51 | }; 52 | 53 | #endif // CLASSCHESS_H 54 | -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | #include "mainform.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | // classChess w; 9 | // w.show(); 10 | MainForm mf; 11 | mf.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/02myChess/mainform.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINFORM_H 2 | #define MAINFORM_H 3 | 4 | #include 5 | #include 6 | #include "classchess.h" 7 | 8 | namespace Ui { 9 | class MainForm; 10 | } 11 | 12 | class MainForm : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit MainForm(QWidget *parent = 0); 18 | ~MainForm(); 19 | 20 | private: 21 | Ui::MainForm *ui; 22 | classChess *myChess; 23 | 24 | int chessData[8][8]; 25 | int blackNum; 26 | int whiteNum; 27 | classChess::cheesType currentRole; 28 | 29 | 30 | 31 | void Init(); 32 | void chessInit(); 33 | int judgeRule(int x, int y, void *chess, classChess::cheesType currentRole,bool eatChess); 34 | void setDownChess(); 35 | void getChessNumber(); 36 | 37 | private slots: 38 | void doProcessGetXY(int x, int y); 39 | 40 | void on_btn_pvp_clicked(); 41 | 42 | protected: 43 | void paintEvent(QPaintEvent *); 44 | 45 | }; 46 | 47 | #endif // MAINFORM_H 48 | -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/06增加吃子规则/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp \ 17 | mainform.cpp 18 | 19 | HEADERS += classchess.h \ 20 | mainform.h 21 | 22 | FORMS += \ 23 | mainform.ui 24 | -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | int setChangeChessData(void *p); 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | void resizeEvent(QResizeEvent *); 30 | void mousePressEvent(QMouseEvent *); 31 | 32 | private: 33 | const int gridNumber; 34 | int gridWidth, gridHeigth; 35 | 36 | QString bgName; 37 | QColor gridLineColor; 38 | Qt::PenStyle gridLineStyle; 39 | int gridLineWidth; 40 | 41 | const int chessGridNumber; 42 | int chessData[8][8]; 43 | 44 | 45 | void Init(); 46 | void chessInit(); 47 | 48 | signals: 49 | void SignalSendXY(int x, int y); 50 | 51 | }; 52 | 53 | #endif // CLASSCHESS_H 54 | -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | #include "mainform.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | // classChess w; 9 | // w.show(); 10 | MainForm mf; 11 | mf.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/02myChess/mainform.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINFORM_H 2 | #define MAINFORM_H 3 | 4 | #include 5 | #include 6 | #include "classchess.h" 7 | 8 | namespace Ui { 9 | class MainForm; 10 | } 11 | 12 | class MainForm : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit MainForm(QWidget *parent = 0); 18 | ~MainForm(); 19 | 20 | private: 21 | Ui::MainForm *ui; 22 | classChess *myChess; 23 | 24 | int chessData[8][8]; 25 | int blackNum; 26 | int whiteNum; 27 | classChess::cheesType currentRole; 28 | 29 | 30 | 31 | void Init(); 32 | void chessInit(); 33 | int judgeRule(int x, int y, void *chess, classChess::cheesType currentRole,bool eatChess); 34 | void setDownChess(); 35 | void getChessNumber(); 36 | 37 | private slots: 38 | void doProcessGetXY(int x, int y); 39 | 40 | void on_btn_pvp_clicked(); 41 | 42 | protected: 43 | void paintEvent(QPaintEvent *); 44 | 45 | }; 46 | 47 | #endif // MAINFORM_H 48 | -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/07实现人人对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/02myChess.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-10-13T11:42:43 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui testlib 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = 02myChess 12 | TEMPLATE = app 13 | 14 | 15 | SOURCES += main.cpp\ 16 | classchess.cpp \ 17 | mainform.cpp 18 | 19 | HEADERS += classchess.h \ 20 | mainform.h 21 | 22 | FORMS += \ 23 | mainform.ui 24 | -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/classchess.h: -------------------------------------------------------------------------------- 1 | #ifndef CLASSCHESS_H 2 | #define CLASSCHESS_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | class classChess : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | classChess(QWidget *parent = 0); 16 | ~classChess(); 17 | 18 | enum cheesType{ 19 | Empty = 0, 20 | Black, 21 | White 22 | }; 23 | int setChangeBG(const QString bgName); 24 | int setChangeGrid(QColor col = Qt::red, Qt::PenStyle style = Qt::SolidLine, int width=3); 25 | int setChangeChessData(void *p); 26 | 27 | protected: 28 | void paintEvent(QPaintEvent *); 29 | void resizeEvent(QResizeEvent *); 30 | void mousePressEvent(QMouseEvent *); 31 | 32 | private: 33 | const int gridNumber; 34 | int gridWidth, gridHeigth; 35 | 36 | QString bgName; 37 | QColor gridLineColor; 38 | Qt::PenStyle gridLineStyle; 39 | int gridLineWidth; 40 | 41 | const int chessGridNumber; 42 | int chessData[8][8]; 43 | 44 | 45 | void Init(); 46 | void chessInit(); 47 | 48 | signals: 49 | void SignalSendXY(int x, int y); 50 | 51 | }; 52 | 53 | #endif // CLASSCHESS_H 54 | -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/background.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/background2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/background2.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/black.png -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/board.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/board.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/board1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/board1.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/board2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/board2.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/board4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/board4.jpg -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/image/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/02myChess/image/white.png -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/main.cpp: -------------------------------------------------------------------------------- 1 | #include "classchess.h" 2 | #include 3 | #include "mainform.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | // classChess w; 9 | // w.show(); 10 | MainForm mf; 11 | mf.show(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /黑白棋/08人机对战/02myChess/mainform.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINFORM_H 2 | #define MAINFORM_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "classchess.h" 8 | 9 | namespace Ui { 10 | class MainForm; 11 | } 12 | 13 | class MainForm : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit MainForm(QWidget *parent = 0); 19 | ~MainForm(); 20 | 21 | private: 22 | Ui::MainForm *ui; 23 | enum PKType{ 24 | None=0, 25 | PVP, 26 | PVC, 27 | NVN, 28 | }; 29 | 30 | classChess *myChess; 31 | 32 | int chessData[8][8]; 33 | int blackNum; 34 | int whiteNum; 35 | classChess::cheesType currentRole; 36 | 37 | PKType currentPK; 38 | 39 | 40 | void Init(); 41 | void chessInit(); 42 | int judgeRule(int x, int y, void *chess, classChess::cheesType currentRole,bool eatChess); 43 | void setDownChess(); 44 | void getChessNumber(); 45 | 46 | private slots: 47 | void doProcessGetXY(int x, int y); 48 | 49 | void on_btn_pvp_clicked(); 50 | 51 | void on_btn_pvc_clicked(); 52 | 53 | protected: 54 | void paintEvent(QPaintEvent *); 55 | 56 | }; 57 | 58 | #endif // MAINFORM_H 59 | -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/02myChess -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/classchess.o -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/main.o -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/mainform.o -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_classchess.o -------------------------------------------------------------------------------- /黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/candlezang/up-embedded-QT/a2888cbdce93140039fa7bd0f6a1c3aea04ece6a/黑白棋/08人机对战/build-02myChess-Desktop_Qt_5_5_1_GCC_64bit-Debug/moc_mainform.o --------------------------------------------------------------------------------