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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -