Qwebview and printer issue(paper size)



  • Hello everyone,
    I have got a QWebView widget in my application. it shows HTML very well.
    But
    When it comes to printing the html page, it does not like the defined printer properties:

    QPrinter printer;
    printer.setOrientation(QPrinter::Landscape);
    printer.setPaperSize(QPrinter::A6);
    printer.setPageMargins(5,5,5,5,QPrinter::Millimeter);
    printer.setFullPage(true); 
    
    ui->webView->print(&printer);
    

    As you see I want to print on an A6 paper(A6 paper is a quarter of an A4). In result, all the time it gives me Letter standard page rather than A6.

    I have prepared a project which reflect the issue and it's downloadable from the link below:
    http://wikisend.com/download/679960/printerIssue.zip

    Thanks in advance



  • Anyone?
    Any Idea?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.