Hi, all,
I want to save file as "outpuf.pdf" that is previewed via QPrintPreviewWidget. according to Qt's assistant, void QPrinter::setOutputToFile ( bool enable ) can be used, however, when i called this function, error C2039: 'setOutputToFile' : is not a member of 'QPrinter' occurs.

Why?