Results 1 to 2 of 2

Thread: GUI Drawing with Thread

  1. #1
    Join Date
    Sep 2013
    Posts
    14
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Default GUI Drawing with Thread

    Hi,
    I divide the screen into four parts and want to draw a four continuous line in sync from application start to till application terminates (i.e infinite) in every 30 ms.
    (if draw line reached at screen end wave will start from beginning). so I used Qt concurrent::run() to draw line in QImage and emit signal to main GUI other function for draw pix-map in label and i have one push Button in main GUI whenever i click on push button,wave halt for one sec.
    what will be the best way to draw infinite wave without interrupting main GUI events.

    Kindly help for the same

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

    Default Re: GUI Drawing with Thread

    Why do you want to use threads for that?
    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: 1
    Last Post: 25th October 2012, 15:10
  2. Replies: 11
    Last Post: 12th September 2012, 16:25
  3. Replies: 1
    Last Post: 28th March 2012, 18:58
  4. Replies: 9
    Last Post: 28th November 2009, 20:31
  5. Replies: 16
    Last Post: 7th October 2009, 08:17

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.