当使用qtCreator,一个最简单程序,QtCreator也会报错
error: You need to set an executable in the custom run configuration
QT改着改着出现“ error: You need to set an executable in the custom run configuration.”的问题
默认情况下,Executable即exe路径一般与编译产生的目标文件在同一个目录下,比如下图:
但这个路径也可以自行修改,
DESTDIR = $$PWD/bin
在工程文件pro中添加如下:
QtCreator找不到widget相关的头文件和配置信息
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = MyTestDll
TEMPLATE = lib
DEFINES += MYTESTDLL_LIBRARY
SOURCES += mytestdll.cpp \
myshowtest.cpp
HEADERS += mytestdll.h\
MyTestDll_global.h \
myshowtest.h
FORMS += \
myshowtest.ui