Results 1 to 2 of 2

Thread: Best practice of copying parts of QPixmaps (copyBlt replacement?)

  1. #1
    Join Date
    Jan 2012
    Posts
    15
    Thanks
    4
    Qt products
    Qt4

    Default Best practice of copying parts of QPixmaps (copyBlt replacement?)

    Hi i need to copy a region of one QPixmap into a region of another QPixmap.
    The method i found that does exactly this job is(was) copyBlt() but it is gone in QT4. Is there any replacement for this? What is the best practice to achive the same result?

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

    Default Re: Best practice of copying parts of QPixmaps (copyBlt replacement?)

    Open a painter on the destination pixmap and use QPainter::drawPixmap() passing the region of the original pixmap and the rect of the painter you want to copy the pixmap to.
    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. The following user says thank you to wysota for this useful post:

    conti (8th March 2012)

Similar Threads

  1. Replacement for QTimer?
    By SKolaMunn in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2011, 16:55
  2. Replacement for CMapStringToPtr
    By rajeshs in forum Newbie
    Replies: 3
    Last Post: 21st December 2007, 12:25
  3. Replacement for MESSAGE_MAP()
    By krishbhala in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2007, 15:20
  4. Console replacement
    By aegis in forum Qt Programming
    Replies: 14
    Last Post: 3rd April 2007, 00:38
  5. Replacement of Images
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 1st March 2007, 10:16

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.