Results 1 to 4 of 4

Thread: How to make a preview?

  1. #1
    Join Date
    Apr 2009
    Posts
    75
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default How to make a preview?

    Hi, I'm using a QPrinter to print my docs.

    QPrinter printer;
    Qt Code:
    1. printer.setFullPage(true);
    2. printer.setPageSize(QPrinter::A4);
    3. QPrintDialog dlg( &printer );
    4. if( dlg.exec() != QDialog::Accepted ) return;
    To copy to clipboard, switch view to plain text mode 

    I'ld like to make a preview?
    The only idea as I have is print to PDF, but it is not elegant

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make a preview?

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2009
    Posts
    75
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to make a preview?

    I'm very sorry, I looked at the documentation, but I did not know that it is so simple

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to make a preview?

    Don't be sorry. That's rather good and not bad
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. print preview
    By wbt_ph in forum Qt Programming
    Replies: 4
    Last Post: 1st August 2009, 07:41
  2. WYSIWYG preview in Qt4/Solaris.
    By Alex_123 in forum Qt Programming
    Replies: 0
    Last Post: 21st April 2009, 19:39
  3. Qt 4.4 preview Webkit.
    By bunjee in forum Installation and Deployment
    Replies: 6
    Last Post: 7th May 2008, 10:51
  4. preview file dialog
    By mickey in forum Qt Programming
    Replies: 11
    Last Post: 22nd April 2006, 00:03
  5. Qt Designer 4.0.1 Preview Colors
    By jtyler in forum Qt Tools
    Replies: 2
    Last Post: 14th February 2006, 16:47

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.