Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4449922
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: 嵌入式

2013-01-16 10:02:50

qtopia2去掉鼠标指针

板子:helper2416     qtopia2.2     作者:帅得不敢出门   c++哈哈堂:31843264

qtopia去掉/隐藏鼠标指针的方法网上不好找,都是qt4的, 只好手动查找方法, 从源码中入手寻找突破口

qt2/src/kernel/qwscursor_qws.cpp

  1. #include   
  2. #include   
  3. #include   
  4. #include   
  5. #include "qwindowsystem_qws.h"  
  6. #include "qwscursor_qws.h"  
  7.   
  8. #ifndef QT_NO_QWS_CURSOR  
  9. static QWSCursor * systemCursorTable[15];  
  10. static bool systemCursorTableInit = false;  
可以看到有个宏QT_NO_QWS_CURSOR决定了会不会编译它,

所以只要在编译时加上这个宏就可以了.  

那么怎么加这个宏呢

qt2/configure

248行

   -D?*)
        D_FLAGS="$D_FLAGS $1"

好,方法应该找到了.

./configure  -qte '-DQT_NO_QWS_CURSOR'   其他选项

然后make应该就可以了.

阅读(1739) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~