I am using Qt 4.3 on Solaris 9 and am having compilation problems when trying to configure a QPrinter object.
printer
->setColorMode
( QPrinter::GrayScale );
QPrinter* printer = new QPrinter( );
printer->setColorMode( QPrinter::GrayScale );
To copy to clipboard, switch view to plain text mode
I get these compiler errors on the line setting the color mode.
Error: Identified expected instead of "1"
Error: Badly formed expression
However this line compiles fine
printer
->setColorMode
( QPrinter::Color );
printer->setColorMode( QPrinter::Color );
To copy to clipboard, switch view to plain text mode
Why does GrayScale not compile but Color does? Thanks!
Bookmarks