Results 1 to 20 of 35

Thread: How to threading data in app?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #17
    Join Date
    Oct 2013
    Location
    VietNam
    Posts
    41
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Windows Android
    Thanks
    3

    Default Re: How to threading data in app?

    Quote Originally Posted by anda_skoa View Post
    Finding the window, getting and releasing a DC and calling send_data_channel for every loop iteration looks really wasteful.

    Cheers,
    _
    I just do not call these functions, better results but still not solved the problem.
    I test and realized that GetPixel(dc, _x, _y ) is time-consuming. So when I put 500 - 1000 rectangle, I had 500 -1000 object in list and take a long time to process.
    however I only 30ms to process all.


    Added after 4 minutes:


    Quote Originally Posted by wysota View Post
    If color of an object depends on this object's position, can't you simply ask the object what color it has instead of using this hacky WinAPI approach?
    I get color pixel screen from object's position. I used WinAPI approach to get it. Anything approach?
    Last edited by tanthinh1510; 1st April 2015 at 08:55.

Similar Threads

  1. Threading with rsh and rcp
    By jaxrpc in forum Newbie
    Replies: 2
    Last Post: 4th June 2010, 12:50
  2. Threading...?
    By sekatsim in forum Qt Programming
    Replies: 12
    Last Post: 10th June 2008, 02:14
  3. Qt Threading
    By avh in forum Newbie
    Replies: 7
    Last Post: 30th May 2008, 21:20
  4. I'm failing with Threading
    By thomaspu in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2008, 20:40
  5. Sub-Threading
    By TheGrimace in forum Qt Programming
    Replies: 4
    Last Post: 7th June 2007, 17:38

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.