Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Moved] qt thread
QtWS25 Last Chance

[Moved] qt thread

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suma
    wrote on last edited by
    #1

    Hi,
    What is the best way to implement the thread in Qt. I heard that its necessary to implement required processing in the run() method only.
    Im doing something like this, data/input im getting from the outside as soon as i get i ll copy that data into local structure and start to plot that data in thread.After copying that data in local buffer i ll start the thread and Plotting i have put it in run() method. But data plotting is very slow it looks like thread is not running.

    Any solution?

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      It's advided not to use the run() approach you are referring to from the Qt docs. It's better to subclass a QObject instead.

      Have a look at this wiki page :
      http://developer.qt.nokia.com/wiki/Threads_Events_QObjects

      Or use the tag on the right this wil give you an overview of all topics on threads on defnet.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved