Compile error in qwt_polar_renderer.cpp when QT_NO_PRINTER is defined
I was able to successfully configure, build and install Qwt for x86 and CE6 (cross-compilation) based on Qt 4.8.4.
To cross compile for CE6 I must define QT_NO_PRINTER macro (maybe QPrinter is not supported in CE6 - I don't know).
I was able to successfully configure, build and install QwtPolar for x86 too.
When I try to cross-compile QwtPolar for CE6 I must define QT_NO_PRINTER macro but this gives compile error in qwt_polar_renderer.cpp.
.\qwt_polar_renderer.cpp(231) : error C2027: use of undefined type 'QPrinter'
I see that some portion of the code in this file is conditionally excluded based on QT_NO_PRINTER macro.
But QwtPolarRenderer::renderTo() expected a QPainter inpt parameter in any case.
How can I fix this, please?
Re: Compile error in qwt_polar_renderer.cpp when QT_NO_PRINTER is defined
Code:
#ifndef QT_NO_PRINTER
void QwtPolarRenderer::renderTo(
QwtPolarPlot
*plot,
QPrinter &printer
) const{
...
}
#endif
This function does not make any sense, when you have no printer support. Please also file a bug report.
ciao,
Uwe
Re: Compile error in qwt_polar_renderer.cpp when QT_NO_PRINTER is defined
Thank you very much.
Quote:
Originally Posted by
Uwe
This function does not make any sense, when you have no printer support. Please also file a bug report.
Do you mean here?
I think that this fix impacts into polardemo example (
Code:
MainWindow::printDocument()
in mainwindow.cpp instantiates a QPrinter variable)