Results 1 to 4 of 4

Thread: QImage pixel manipulation access time/performance question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: QImage pixel manipulation access time/performance question

    I use this code to show "preview" and I can see, while changing slider (connected to the value)
    It also can be that you are running the slot for each value change which will restart your loop again and again.
    Try to build in some logic either time based on mouse release, to only run the preview loop when its more or less certain that the current slider value is the value that needs to be previewed.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  2. The following user says thank you to high_flyer for this useful post:

    Talei (12th November 2010)

Similar Threads

  1. QImage.pixel and Format_Indexed8
    By chef_seppel in forum Newbie
    Replies: 2
    Last Post: 29th September 2010, 23:17
  2. Shifting a QImage up by 1 pixel row
    By MSUdom5 in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2010, 11:25
  3. QImage direct pixel access.
    By hickscorp in forum Qt Programming
    Replies: 3
    Last Post: 7th May 2010, 11:23
  4. QImage Pixel Coordinations
    By strateng in forum Newbie
    Replies: 2
    Last Post: 6th May 2010, 11:00
  5. QImage-Greyscale-8-bits-pixel
    By Ivan Labrador in forum Newbie
    Replies: 5
    Last Post: 3rd August 2008, 01:08

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.