Qt library 分为:Core library,GUI library,Multimedia library, SQL library, OpenGL library, Network library, Script library, Xml patterns library, Test library, UiTools library, XML library, SVG library, Qt3 support library, ActiveQt server library, ActiveQt container, Help library, WebKit library, Phonon library, Declarative library, ScripptTools library.
如下图:
可以通过QT菜单来给项目添加lib库文件,也可以通过项目属性->链接器->输入->附加依赖项中添加,如下图:
下面介绍下他们的功用:
1.Core library:包含核心的非图形功能函数。指令为#include <QtCore>,依赖项Debug下为QtCored4.lib,Release下为QtCore4.lib。对应的动态链接库为QtCored4.dll, QtCore4.dll。
2.GUI library:用图形相关的功能函数。指令为#include <QtGui>, 依赖项Debug下为QtCuid4.lib,Release下为QtCui4.li