Results 1 to 2 of 2

Thread: QWebpage print bug

  1. #1
    Join Date
    Apr 2013
    Posts
    27
    Thanks
    9
    Qt products
    Qt5
    Platforms
    Windows

    Default QWebpage print bug

    hi,

    because the subset of Qdocument is insufficient.

    i am using a Qwebpage to render the html. But when i try to print it there is something wrong.
    8snx.jpg

    What am i doing wrong?

    any help is appreciated,
    Delphi


    Qt Code:
    1. ui->webView->load(QUrl("http://qwebpage.comuv.com/WebkitFile.html"));
    2.  
    3. QPrinter printer;
    4. printer.setResolution(QPrinter::HighResolution);
    5.  
    6. QPrintDialog dialog(&printer);
    7. dialog.setWindowTitle("Print Bestelling");
    8. if (dialog.exec() == QDialog::Accepted) {
    9.  
    10. ui->webView->page()->mainFrame()->print(&printer);
    11. // hoofddoc.mainFrame()->print(&printer);
    12. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Apr 2013
    Posts
    27
    Thanks
    9
    Qt products
    Qt5
    Platforms
    Windows

Similar Threads

  1. synchronize QWebPage
    By januszmk in forum Newbie
    Replies: 0
    Last Post: 4th August 2012, 11:45
  2. Unwanted downloads with QWebPage/QWebPage
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 11th May 2010, 22:48
  3. How to use qwebpage in non-gui app
    By Cykus in forum Newbie
    Replies: 4
    Last Post: 10th May 2010, 11:35
  4. Cancelling Long-running Print/Print Preview
    By ChrisW67 in forum Newbie
    Replies: 4
    Last Post: 16th June 2009, 23:05
  5. QwebPage within a QGraphicsWidget
    By Osprey in forum Qt Programming
    Replies: 0
    Last Post: 16th June 2009, 17:32

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.