C++ Qt Game Tutorial 2 - Moving With the Arrow Keys
移动矩形,在第一个例子基础上,建立一个矩形类,实现keyPressEvent方法。空格键的地方写了一个子弹(bullet), 里面有一个定时器,不停地向上移动, 利用到了qt 的一个很重要的特性,signal and slot.
#-------------------------------------------------
#
# Project created by QtCreator
原创
2017-01-17 21:43:54 ·
567 阅读 ·
0 评论