alizadeh91
19th July 2012, 08:39
Hi all...
I've getting a unresolved external error when compiling a program with Qt5 which has QPrinter object. Simply i define a QPrinter object and get the error.
Is this a bug?!
The Code:
#include <QApplication>
#include "mainwindow.h"
#include <QPrinter>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
QPrinter printer; <= This is where the error comes...
return a.exec();
}
I've getting a unresolved external error when compiling a program with Qt5 which has QPrinter object. Simply i define a QPrinter object and get the error.
Is this a bug?!
The Code:
#include <QApplication>
#include "mainwindow.h"
#include <QPrinter>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
QPrinter printer; <= This is where the error comes...
return a.exec();
}