Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > QT使用中的2个问题及解决
【标  题】:QT使用中的2个问题及解决
【关键字】:QT
【来  源】:http://blog.chinaunix.net/article.php?articleId=44753&blogId=8650

QT使用中的2个问题及解决

Your Ad Here

首次成功编译了使用QT4的程序,遇到如下2个问题。

1。出错:............. /bin/sh.exe: C:Qt4.0.0binmoc.exe: command not found
解:
when using qt build system with mingw, make sure you DO NOT HAVE sh.exe in
the PATH. Further make sure to use mingw32-make instead of msys's version.
This is the ONLY way to force make and qmake to use cmd.exe (at least the
only way I know) which is absolutely mandetory for this to work. When
writing your .pro files you can always use /'ses in the pathes.

2。出错:C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
`QtValidLicenseForGuiModule' does not name a type


解:In the file C:\Qt.0.1\src\corelib\global\qconfig.h change the line  13

#  define QT_EDITION QT_EDITION_

to

#  define QT_EDITION QT_EDITION_DESKTOP


心得:使用qmake,可以大大减少劳动量,不用自己写makefile,不用考虑g++参数。

QT使用中的其他3个问题及解决。:【上一篇】
openshell的开发:【下一篇】
【相关文章】
  • QT使用中的其他3个问题及解决。
  • 在qt中实现offscreen rendering
  • Qt不支持菱形继承
  • Qt中的openGL overlay
  • 宽字符支持(linux,MinGW,Qt)
  • kdeQt中文显示问题
  • 第一个简单的QT程序
  • Installing Qt/Windows
  • QT Windows developing enviroment Building
  • QT一起学(二) 基本程序框架
  • 【随机文章】
  • 安装discuz论坛过程中出现不能识别preg_replace()函数的问题!
  • 从指针的使用角度看数组与结构体
  • 直接初始化与拷贝初始化学习笔记
  • 据库设计中的14个技巧
  • 2004年系统分析师级考试大纲
  • 配置PPPOE路由功能,ADSL简单共享
  • remote script文档(转载自微软)(一)
  • A long time dream coming true
  • 家庭智能化系统
  • 移动办公系统
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.