Results 1 to 2 of 2

Thread: pls help me to draw a pixmap in background (watermark) using qpainter in qt3

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Maemo/MeeGo

    Default pls help me to draw a pixmap in background (watermark) using qpainter in qt3

    hi friends , am quite new to qt3.3

    can anyone help me to draw a background image(watermark) in postscript file using qpainter...

    this is my code to create ps file


    QPrinter* printer = new QPrinter( QPrinter::HighResolution );
    printer->setColorMode( QPrinter::Color );
    printer->setPageSize( QPrinter::A4 );
    printer->setOrientation( QPrinter::Portrait );
    printer->setOutputFileName("test2.ps");


    thankzzzzzz.....



    my qt version - 3.3.8b.......

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: pls help me to draw a pixmap in background (watermark) using qpainter in qt3

    Qt 3.3 is an old version. I don't have it's docs in front of me, but it should be just a matter of creating a painter, setting it to paint on the printer, and drawImage().

    I would upgrade to Qt 4.x if you can (4.5 at the minimum). Qt 3.x is no longer supported, and is not getting any bug fixes.

Similar Threads

  1. Replies: 10
    Last Post: 14th September 2011, 10:08
  2. Replies: 10
    Last Post: 10th February 2011, 23:31
  3. How to get background pixmap?
    By philipp1 in forum Qt Programming
    Replies: 2
    Last Post: 4th November 2006, 08:44
  4. QPainter ouside of paintEvent with a pixmap
    By bitChanger in forum Qt Programming
    Replies: 10
    Last Post: 22nd March 2006, 19:45

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.