Results 1 to 5 of 5

Thread: Problems with printing ?

  1. #1
    Join Date
    Jan 2013
    Posts
    19
    Thanks
    11

    Question Problems with printing ?

    Hi I print the class QPrinter, QPainter can be used to print and printer to printer, but it works out between you straight print (2 copies of a file) the printer is working all the time and it takes a long time and hp is hot!!! What's problem?

  2. #2
    Join Date
    Jan 2013
    Location
    Wisconsin
    Posts
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problems with printing ?

    The first problem is we need to see your code.

  3. The following user says thank you to MWagman for this useful post:

    complexcoding (1st February 2013)

  4. #3
    Join Date
    Jan 2013
    Posts
    19
    Thanks
    11

    Default Re: Problems with printing ?

    thank you very much :

    QFont font("B Lotus", 10);
    font.setBold(true);
    QPrinter printer;
    printer.setPageSize(QPrinter::A4);
    printer.setOutputFormat(QPrinter::NativeFormat);
    // printer.setOutputFileName("nonwritable.pdf");

    printer.setCopyCount(2);

    QPainter painter(this);

    painter.begin(&printer);
    painter.setFont(font);
    *
    *
    *
    *
    painter.end();

  5. #4
    Join Date
    Jan 2013
    Posts
    19
    Thanks
    11

    Default Re: Problems with printing ?

    No one wants to help?

  6. #5
    Join Date
    Jan 2013
    Location
    Wisconsin
    Posts
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: Problems with printing ?

    Learning printing myself, how large is the PDF - and how does the printer deal with that. IF the hp is hot (litterally) I would look at that instead of a program issue

  7. The following user says thank you to MWagman for this useful post:

    complexcoding (2nd February 2013)

Similar Threads

  1. Printing In QT
    By Splatify in forum Newbie
    Replies: 1
    Last Post: 8th March 2011, 00:09
  2. Replies: 2
    Last Post: 23rd July 2010, 14:53
  3. Printing Qt
    By IsoArska in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2010, 12:10
  4. Weird Cross Platform Printing Problems
    By igor in forum Qt Programming
    Replies: 7
    Last Post: 7th August 2007, 16:25
  5. Re: Printing in Qt
    By Jimmy2775 in forum Newbie
    Replies: 3
    Last Post: 12th July 2006, 23:00

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
  •  
Qt is a trademark of The Qt Company.