How to specify custom page margins when print with QPrinter related class
Dear sir,
I have written a program to print Rich text. My problem is that I want to specity my own page margins in the program, instead of use QPageSetupDialog.
But when I use , where printer is QPrinter, it do nothing. So I check the function in Qt's source codes, it do nothing for QPrintEngine::PPK_PageRect ( deafult switch ).
How can I do that?
Thanks.
Re: How to specify custom page margins when print with QPrinter related class
You can call setViewport() on the printer's painter and set the margins there.