C语言Main函数返回值 main函数的返回值,用于说明程序的退出状态。如果返回0,则代表程序正常退出;返回其它数字的含义则由系统决定。通常,返回非零代表程序异常退出。 很多人甚至市面上的一些书籍,都使用了void main( ) ,其实这是错误的。C/C++ 中从来没有定义过void main( Read More
posted @ 2016-12-25 19:12 findumars Views(17206) Comments(0) Diggs(0)
在Qt中,键盘事件和QWidget的focus密不可分:一般来说,一个拥有焦点(focus)的QWidget或者grabKeyboard()的QWidget才可以接受键盘事件。 键盘事件派发给谁? 如何确定谁来接收键盘事件,不妨看一点点QApplication的源码: X11下 Windows下 大 Read More
posted @ 2016-12-25 00:51 findumars Views(3386) Comments(0) Diggs(0)
1.首先下载好需要配置的软件: 1》Qt 5.1.0 for Android (Windows 32-bit, 716 MB) (Info)下载地址: http://qt-project.org/downloads 2》android SDK tools (只下载tools即可)下载地址:http: Read More
posted @ 2016-12-25 00:45 findumars Views(408) Comments(0) Diggs(0)