Results 1 to 2 of 2

Thread: How to paint line by line

  1. #1
    Join Date
    Jul 2008
    Posts
    18
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question How to paint line by line

    Folks

    Im wondering if anyone could help me, im trying to display image data in a QGraphicsScene im able to display items in the scene properly using QGraphicsItemAnimation and make the items move properly, the items are a simple QPixmapItem. Now i need to receive bitmap data from an external source via a bytestream, i think i will need QByteBitArray for this. But i need to quicky repaint this image data as it streams in and paint it line by line on the scene. All the examples ive seen on the net for doing this show the depricated bitblt() call be used with a memcopy() and are pretty complicated. Do i need to use QImage when for painting line by line? Any help would be appreciated.

  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 paint line by line

    You can't access QPixmap's data. One of the possible solutions is to create your own graphics item with QImage inside.

Similar Threads

  1. QTcpSocket exception.
    By Fastman in forum Qt Programming
    Replies: 9
    Last Post: 29th January 2008, 13:51
  2. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  3. Qwizard crashed when created in a slot
    By joshlareau in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2008, 09:16
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  5. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42

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