请大家帮我解释一下#include <QtGui/QHBoxLayout>中的QTGui来自哪里,参考手册中好像没有啊。还有<QtGui/QHBoxLayout>
中加个“/”是个什么意思啊,这个<QtGui/QHBoxLayout>又代表什么意思?
------解决方案--------------------
/ 是下级目录的意思
QtGui是个大目录
QHBoxLayout是二级目录
------解决方案--------------------
------解决方案--------------------
这个,其实看看源代码就清楚了QHBoxLayout文件里边就是一句:#include <qhboxlayout.h>
所以下边三行是一个意思:
#include <QHBoxLayout>
#include <qhboxlayout.h>
#include <QtGui/QHBoxLayout>
------解决方案--------------------
------解决方案--------------------
Qt里面包含了若干个模块,比如QtCore、QtNetwork、QtGui、QtDeclarative等等