为了设置页边距,调用了QPageSetupDialog,但是好像无效,具体步骤如下:
QPrinter* printer= new QPrinter();
QPageSetupDialog dlg(printer,this);
if (dlg.exec() == QDialog::Accepted) {
QRect rect = printer->pageRect(); 这里取得的页面范围好像在对话框中怎么设置都没有效果
}
甚至选定的打印纸张也没有效果,有知道问题原因的大侠请告知一声,不胜感激。
[ 此贴被XChinux在2005-11-07 15:20重新编辑 ]