Results 1 to 4 of 4

Thread: Q3Canvas Printing Problem on Windows XP, but OK on Solaris

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Location
    Boulder, Colorado, USA
    Posts
    70
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Q3Canvas Printing Problem on Windows XP, but OK on Solaris

    On Windows, Q3Canvas Printing to a PDF file or to an actual printer is not working. Canvas items are printed with reasonable font sizes, but the positions are very broken -- all overlapping in the top-left corner. It looks to be a scaling problem -- the relative positions of text (relative to each other) seem to be correct. On Solaris though, printing is working properly.

    SEE IMAGES: http://cadswes2.colorado.edu/~philw/...Q3CanvPrtProb/




    Qt4 Version: 4.3.3
    Windows Platform: Microsoft Windows XP, Service Pack 2

    Simplified code snippet (similar results):

    Qt Code:
    1. QPrinter printer (QPrinter::HighResolution);
    2. QPrintDialog printDlg (&printer, this);
    3. const int userResp = printDlg.exec();
    4. if (userResp != QDialog::Rejected)
    5. {
    6. QPainter pPainter (&printer);
    7. Q3Canvas* actQCanvas = _activeCanvas->canvas();
    8. QRect actQCanvasRect = actQCanvas->rect();
    9. actQCanvas->drawArea (actQCanvasRect, &pPainter, false);
    10. }
    To copy to clipboard, switch view to plain text mode 
    Attached Images Attached Images

Similar Threads

  1. Printing problem in windows
    By joseph in forum Qt Programming
    Replies: 6
    Last Post: 12th July 2007, 08:04

Tags for this Thread

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.