Results 1 to 8 of 8

Thread: QImage and threads

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2

    Default Re: QImage and threads

    Quote Originally Posted by wysota View Post
    Don't use a label. Use a custom widget and store each scanline as a separate pixmap as I suggested earlier.
    Thanks for your answer. So I create a new Widget class, reimplement paintEvent and let the painter paint my scanlines on the widget?

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

    Default Re: QImage and threads

    Yes. And only paint those scanlines that need painting (observe the rectangle you get in the paint event).
    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.


Similar Threads

  1. Replies: 12
    Last Post: 7th September 2011, 16:37
  2. QThread trying to limit threads
    By spawn9997 in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2009, 15:51
  3. Threads and QwtPainter::drawText
    By AwDogsgo2Heaven in forum Qwt
    Replies: 1
    Last Post: 15th July 2009, 16: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
  •  
Qt is a trademark of The Qt Company.