`QtValidLicenseForCoreModule' does not name a type 错误的解决
2009-12-23 10:28
686 查看
目前正在学习Qt,按照C++GUI programming with QT4的例子,自己输入了一遍程序。
在编译的时候,免不了许多错误,
但是有一个错误却花了我好长时间才解决,这就是:
`QtValidLicenseForCoreModule' does not name a type;
在网上一直找不到解决的方法,
许多人都说是配置文件的问题,
可是自己刚学Qt,对配置文件一窍不通。
经过两天的寻找,
最后问题解决了,
说出来也真可笑。
出现这个错误的原因竟然是我定义类时忘了在{}后面加上;号。
不知道刚学Qt的人会不会出现同样问题,希望能给大家一点帮助。
在编译的时候,免不了许多错误,
但是有一个错误却花了我好长时间才解决,这就是:
`QtValidLicenseForCoreModule' does not name a type;
在网上一直找不到解决的方法,
许多人都说是配置文件的问题,
可是自己刚学Qt,对配置文件一窍不通。
经过两天的寻找,
最后问题解决了,
说出来也真可笑。
出现这个错误的原因竟然是我定义类时忘了在{}后面加上;号。
不知道刚学Qt的人会不会出现同样问题,希望能给大家一点帮助。
相关文章推荐
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- opencv2.0 源码安装 for x86 make出现error: 'ptrdiff_t' does not name a type 解决
- 两个C++编译错误及解决办法--does not name a type和field `XX' has incomplete type
- 两个C++编译异常及解决方法-does not name a type和field `XX' has incomplete type
- ndk编译错误:error: 'override' does not name a type
- OrCAD导入PADS时出现“Not valid pin name for part type XX”错误的原因及解决方法
- gem5编译错误:'ptrdiff_t' does not name a type 和 build/ALPHA/python/swig/stats_wrap.o
- 编译错误“The run destination My Mac 64-bit is not valid for Running the scheme '***',解决办法
- 【Hibernate错误解决办法】Could not execute JDBC batch update; Data too long for column 'name' at row 1
- 编译错误 --- does not name a type和field `XX' has incomplete type
- 错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
- 编译错误 --- does not name a type和field `XX' has incomplete type
- type 'simple Class' does not conform to protocol 'Example Protocol'错误
- python错误TypeError: 'module' object is not callable 的解决方法
- Qt编译错误:undefinedreferenceto`vtable for 。。。。'的解决
- Unity 错误(1)——The name `xxx' does not exist in the current context
- WPF 错误:DependencyProperty.UnsetValue}' is not a valid value for property 'Background'
- Unity使用FXMaker导致发布时报“The type or namespace name `UnityEditor' could not be found” 解决备忘