Results 1 to 2 of 2

Thread: QWebView print() not printing as WYSIWYG

  1. #1
    Join Date
    Aug 2009
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default QWebView print() not printing as WYSIWYG

    Whenever QWebView.print() is used, the print output is broken into several pages, as if the page is really tiny (already tried .setPageSize(QPrinter::A4) - no luck). Plus, CSS formatting doesn't seem to apply to the print output.

    Qt Code:
    1. QPrinter printer;
    2.  
    3. QPrintDialog *dlg = new QPrintDialog(&printer, this);
    4. if (dlg->exec() != QDialog::Accepted)
    5. return;
    6. m_ui->webViewRoute_2->print(&printer);
    To copy to clipboard, switch view to plain text mode 

    Is there any way to print the page as you see it in QWebView?

    Thanks in advance,
    Thiago F Alencar

  2. #2
    Join Date
    Aug 2009
    Posts
    7
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    2

    Default Re: QWebView print() not printing as WYSIWYG

    Nobody really had problems printing from QWebView??

Similar Threads

  1. printing QWebView before showing in Dialog
    By Grisu in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2008, 12:20
  2. Printing QTableWidget
    By rmagro in forum Qt Programming
    Replies: 21
    Last Post: 27th June 2007, 21:06
  3. [QT4] QThread and printing a QList<QPixmap>
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 21:44

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.