ios - Variable has incomplete type 'QPrinter' -
i trying use qt in ios.
#include <qtgui/qprinter.h> qprinter print; above code gives "variable has incomplete type 'qprinter'" error. though qtgui/qprinter.h has complete definition qprinter. ideas how resolve problem?
the qprinter.h file has preprocessor condition before definition of qprinter:
#ifndef qt_no_printer // class qprinter { // ... // } #endif maybe on ios qt_no_printer defined, perhaps because not supported? can't find official documentation says much, easy enough test if macro defined in build.
Comments
Post a Comment