刚刚从qt-unified-windows-x86-2.0.3-online.exe重新安装了Qt(MSVC 2013,52和64位的5.5和5.6版本)。我的自定义Qt Designer插件已停止安装到C:\ Qt \ 5.5 \ msvc2013 \ plugins \ designer目录中。之前使用qt-unified-windows-x86-2.0.2-online.exe和Qt 5.5工作得很好。试图明确地设置QT_PLUGIN_PATH,这在以前是不必要的 - 也不行。这可能有什么问题? pro文件不变是:
CONFIG += plugin debug_and_release
TARGET = $$qtLibraryTarget(WidgetBoxPlugin)
TEMPLATE = lib
HEADERS = widgetboxplugin.h widgetbox.h \
widgetboxextensionfactory.h \
widgetboxdesignercontainerextension.h
SOURCES = widgetboxplugin.cpp widgetbox.cpp \
widgetboxextensionfactory.cpp \
widgetboxdesignercontainerextension.cpp
RESOURCES = icons.qrc
LIBS += -L.
greaterThan(QT_MAJOR_VERSION, 4) {
QT += designer
} else {
CONFIG += designer
}
target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target
答案 0 :(得分:0)
添加install
以在Qt Creator中的Project Configuration中创建参数