c++ - Unresolved external symbol with QImage in Qt Creator -


i linkage error in qt creator when want use qimage.

#include <qcoreapplication> #include <qt> #include <qtcore> #include <qtwidgets/qtwidgets> #include <qtgui/qimage>  int main(int argc, char *argv[]) {     qcoreapplication a(argc, argv);      qimage *image = new qimage();     // or qimage *image = new qimage("missile2.jpg");      return a.exec(); } 

and project file

qt       += core qt       += gui  target = rgblayers config   += console config   -= app_bundle  template = app   sources += main.cpp 

can me problem please?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -