Results 1 to 2 of 2

Thread: How to merge two QPixmaps in to one.

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default How to merge two QPixmaps in to one.

    Hi
    i want to make a pixmap that will display a image as if two individual pixmaps have been placed over each other.The QPixmap::copy ( const QRect & rectangle = QRect() ) const will copy the contents of one pixmap in to another and then we can draw on the copied pixmap, but is it possible to merge two pixmaps in to one.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to merge two QPixmaps in to one.

    Use QPainter. See the image composition example.

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

    babu198649 (18th August 2008)

Similar Threads

  1. how to merge QPixmaps
    By tommy in forum Qt Programming
    Replies: 2
    Last Post: 27th March 2008, 12:02
  2. How to merge QTableView and QTreeView ???
    By Xaleandr in forum Newbie
    Replies: 2
    Last Post: 29th December 2007, 17:58
  3. Are transparent QPixmaps possible?
    By eric in forum Qt Programming
    Replies: 1
    Last Post: 19th November 2007, 20:43
  4. Can I split file and merge them.
    By safknw in forum Newbie
    Replies: 1
    Last Post: 3rd October 2006, 09:40
  5. Replies: 7
    Last Post: 18th July 2006, 21:33

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.