qt5.4使用插件无法找到头文件
我使用的是最新版本的qt,正在学习自定义控件插件。在qt creator中直接参考了worldTimeClockPlugin的例子,成功将该控件集成到qt desinger和qt cretor中后,准备在qt creator中使用该控件,却发现编译的时候出现了问题,提示“无法打开包括文件“worldtimeclock.h”:No such file or directory”,我的工程pro文件如下:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = testPlugin
TEMPLATE = app
SOURCES += main.cpp\
testPluginwideget.cpp
HEADERS += testPluginwideget.h
FORMS += testPluginwideget.ui
INCLUDEPATH +=D:\Qt\Qt5.4.1\Examples\Qt-5.4\designer\customwidgetplugin
LIBS +=D:\Qt\Qt5.4.1\Examples\Qt-5.4\designer\customwidgetplugin\customwidgetplugin.lib
本人初学,还望各位帮忙。