实例介绍
本人在学习qt时收集来的小项目,包括qt 2048小游戏,音乐播放器,扫雷游戏,贪吃蛇,计算器等,亲测可用。能帮助新手快速熟悉qt GUI编程。
【实例截图】
【核心代码】
SomeQtGUIExamples
└── SomeQtGUIExamples
├── 2048Cube
│ ├── 5120_DESKTOP
│ ├── 5120_DESKTOP.pro
│ ├── 5120_DESKTOP.pro.user
│ ├── GUI
│ │ └── gamewindow.ui
│ ├── Game
│ │ ├── Cubes
│ │ │ ├── Headers
│ │ │ │ ├── cubeaction.h
│ │ │ │ ├── cubeblock.h
│ │ │ │ └── cubefactory.h
│ │ │ └── Sources
│ │ │ ├── cubeaction.cpp
│ │ │ ├── cubeblock.cpp
│ │ │ └── cubefactory.cpp
│ │ ├── Tools
│ │ │ ├── Headers
│ │ │ │ ├── qxmlfile.h
│ │ │ │ └── settingscontrol.h
│ │ │ └── Sources
│ │ │ ├── qxmlfile.cpp
│ │ │ └── settingscontrol.cpp
│ │ └── Windows
│ │ ├── Headers
│ │ │ └── gamewindow.h
│ │ └── Sources
│ │ └── gamewindow.cpp
│ ├── Images
│ │ ├── cube_mini.ico
│ │ ├── cube_mini.png
│ │ └── wasd.png
│ ├── Makefile
│ ├── cubeaction.o
│ ├── cubeblock.o
│ ├── cubefactory.o
│ ├── gamewindow.o
│ ├── license.md
│ ├── logo.qrc
│ ├── main.cpp
│ ├── main.o
│ ├── moc_cubeblock.cpp
│ ├── moc_cubeblock.o
│ ├── moc_cubefactory.cpp
│ ├── moc_cubefactory.o
│ ├── moc_gamewindow.cpp
│ ├── moc_gamewindow.o
│ ├── pics.qrc
│ ├── qrc_logo.cpp
│ ├── qrc_logo.o
│ ├── qrc_pics.cpp
│ ├── qrc_pics.o
│ ├── qxmlfile.o
│ ├── readme.md
│ ├── settingscontrol.o
│ └── ui_gamewindow.h
├── CoolYing
│ ├── CoolYing.pro
│ ├── CoolYing.pro.user
│ ├── CoolYing.qrc
│ ├── CoolYing.rc
│ ├── icon.ico
│ ├── images
│ │ ├── 1.png
│ │ ├── 2.png
│ │ ├── 3.png
│ │ ├── 4.png
│ │ ├── 5.png
│ │ ├── 6.png
│ │ ├── 7.png
│ │ ├── 8.png
│ │ └── icon.ico
│ ├── main.cpp
│ ├── mainwindow.cpp
│ ├── mainwindow.h
│ └── mainwindow.ui
├── MetroBtn
│ ├── 1.png
│ ├── 2.png
│ ├── MetroBtn.pro
│ ├── MetroBtn.pro.user
│ ├── image.qrc
│ ├── main.cpp
│ ├── mainwindow.cpp
│ ├── mainwindow.h
│ └── mainwindow.ui
├── QUI
│ ├── Font Awesome Cheatsheet.png
│ ├── QUI.pro
│ ├── QUI.pro.user
│ ├── frmmain.cpp
│ ├── frmmain.h
│ ├── frmmain.ui
│ ├── frmvedio.cpp
│ ├── frmvedio.h
│ ├── frmvedio.ui
│ ├── iconhelper.cpp
│ ├── iconhelper.h
│ ├── main.cpp
│ ├── main.ico
│ ├── main.rc
│ └── readme.txt
├── QtGameTutorial
│ ├── README.md
│ ├── Tutorial10
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial1
│ │ └── main.cpp
│ ├── tutorial11
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial12
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial13
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial14
│ │ ├── BuildTowerIcon.cpp
│ │ ├── BuildTowerIcon.h
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial15
│ │ ├── BrownTower.cpp
│ │ ├── BrownTower.h
│ │ ├── BuildBrownTowerIcon.cpp
│ │ ├── BuildBrownTowerIcon.h
│ │ ├── BuildGreenTowerIcon.cpp
│ │ ├── BuildGreenTowerIcon.h
│ │ ├── BuildRedTowerIcon.cpp
│ │ ├── BuildRedTowerIcon.h
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── GreenTower.cpp
│ │ ├── GreenTower.h
│ │ ├── RedTower.cpp
│ │ ├── RedTower.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial16
│ │ ├── BrownTower.cpp
│ │ ├── BrownTower.h
│ │ ├── BuildBrownTowerIcon.cpp
│ │ ├── BuildBrownTowerIcon.h
│ │ ├── BuildGreenTowerIcon.cpp
│ │ ├── BuildGreenTowerIcon.h
│ │ ├── BuildRedTowerIcon.cpp
│ │ ├── BuildRedTowerIcon.h
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── GreenTower.cpp
│ │ ├── GreenTower.h
│ │ ├── RedTower.cpp
│ │ ├── RedTower.h
│ │ ├── Tower.cpp
│ │ ├── Tower.h
│ │ └── main.cpp
│ ├── tutorial17
│ │ └── main.txt
│ ├── tutorial18
│ │ └── main.txt
│ ├── tutorial19
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ └── main.cpp
│ ├── tutorial2
│ │ ├── MyRect.cpp
│ │ ├── MyRect.h
│ │ └── main.cpp
│ ├── tutorial20
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ └── main.cpp
│ ├── tutorial21
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial23
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial25
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial27
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial3
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── MyRect.cpp
│ │ ├── MyRect.h
│ │ └── main.cpp
│ ├── tutorial30
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial32
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial34
│ │ ├── Button.cpp
│ │ ├── Button.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Hex.cpp
│ │ ├── Hex.h
│ │ ├── HexBoard.cpp
│ │ ├── HexBoard.h
│ │ └── main.cpp
│ ├── tutorial4
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── MyRect.cpp
│ │ ├── MyRect.h
│ │ └── main.cpp
│ ├── tutorial5
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── MyRect.cpp
│ │ ├── MyRect.h
│ │ └── main.cpp
│ ├── tutorial6
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Health
│ │ ├── Health.h
│ │ ├── Player.cpp
│ │ ├── Player.h
│ │ ├── Score.cpp
│ │ ├── Score.h
│ │ └── main.cpp
│ ├── tutorial7
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Health.cpp
│ │ ├── Health.h
│ │ ├── Player.cpp
│ │ ├── Player.h
│ │ ├── Score.cpp
│ │ ├── Score.h
│ │ ├── Tutorial.pro
│ │ └── main.cpp
│ ├── tutorial8
│ │ ├── Bullet.cpp
│ │ ├── Bullet.h
│ │ ├── Enemy.cpp
│ │ ├── Enemy.h
│ │ ├── Game.cpp
│ │ ├── Game.h
│ │ ├── Health.cpp
│ │ ├── Health.h
│ │ ├── Player.cpp
│ │ ├── Player.h
│ │ ├── Score.cpp
│ │ ├── Score.h
│ │ └── main.cpp
│ └── tutorial9
│ ├── Game.cpp
│ ├── Game.h
│ ├── Tower.cpp
│ ├── Tower.h
│ └── main.cpp
├── Readme.txt
├── SquareSnake
│ ├── Field.cpp
│ ├── Field.h
│ ├── Fruit.cpp
│ ├── Fruit.h
│ ├── Game.cpp
│ ├── Game.h
│ ├── MainWindow.cpp
│ ├── MainWindow.h
│ ├── MainWindow.ui
│ ├── Painter.cpp
│ ├── Painter.h
│ ├── Scene.cpp
│ ├── Scene.h
│ ├── Shaders
│ │ ├── fShader.glsl
│ │ └── vShader.glsl
│ ├── Shaders.qrc
│ ├── Snake.cpp
│ ├── Snake.h
│ ├── SquareSnake.pro
│ ├── SquareSnake.pro.user
│ ├── SquareSnake.pro.user.fec3ae2
│ ├── Textures.qrc
│ └── main.cpp
├── caculate
│ ├── untitled
│ │ ├── MainWidget.cpp
│ │ ├── MainWidget.h
│ │ ├── OutputString.cpp
│ │ ├── OutputString.h
│ │ ├── main.cpp
│ │ ├── mainwindow.cpp
│ │ ├── myButton.cpp
│ │ ├── myButton.h
│ │ ├── myLineEdit.cpp
│ │ ├── myLineEdit.h
│ │ ├── untitled.pro
│ │ ├── untitled.pro.user
│ │ └── untitled.pro.user.2.1pre1
│ └── untitled-build-desktop
│ ├── Makefile
│ ├── Makefile.Debug
│ ├── Makefile.Release
│ ├── debug
│ │ ├── MainWidget.o
│ │ ├── OutputString.o
│ │ ├── main.o
│ │ ├── moc_MainWidget.cpp
│ │ ├── moc_MainWidget.o
│ │ ├── moc_OutputString.cpp
│ │ ├── moc_OutputString.o
│ │ ├── moc_myButton.cpp
│ │ ├── moc_myButton.o
│ │ ├── moc_myLineEdit.cpp
│ │ ├── moc_myLineEdit.o
│ │ ├── myButton.o
│ │ ├── myLineEdit.o
│ │ └── untitled.exe
│ ├── object_script.untitled.Debug
│ └── object_script.untitled.Release
├── mines
│ ├── aboutdialog.cpp
│ ├── aboutdialog.h
│ ├── aboutdialog.ui
│ ├── images
│ │ ├── 1.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── 4.jpg
│ │ ├── 5.jpg
│ │ ├── 6.jpg
│ │ ├── 7.jpg
│ │ ├── 8.jpg
│ │ ├── BOOM.jpg
│ │ ├── blank.jpg
│ │ ├── mine.jpg
│ │ ├── question.jpg
│ │ └── unknown.jpg
│ ├── images.qrc
│ ├── main.cpp
│ ├── mainwindow.cpp
│ ├── mainwindow.h
│ ├── mineitem.cpp
│ ├── mineitem.h
│ ├── mines.pro
│ ├── mines.pro.user
│ ├── mines.pro.user.22dd9d6.2.7pre1
│ ├── mines.pro.user.60517e1
│ ├── myscene.cpp
│ ├── myscene.h
│ ├── setdialog.cpp
│ ├── setdialog.h
│ └── setdialog.ui
└── sqltest
├── details.cpp
├── details.h
├── details.ui
├── main.cpp
├── sqlfunc.h
├── sqltest.cpp
├── sqltest.h
├── sqltest.pro
├── sqltest.pro.user
└── sqltest.ui
55 directories, 405 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论