Qt Designer插件安装问题

时间:2016-03-30 01:42:47

标签: qt plugins install qt-designer qt5.5

刚刚从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

1 个答案:

答案 0 :(得分:0)

添加install以在Qt Creator中的Project Configuration中创建参数