
Originally Posted by
gri
What type of data do you send over signal/slot? Implicit sharing does not work across threads, so QList<>'s etc. are copied.
Also it matters how frequently you send data since it's handled over event loops.
thanks, gri.
in workerthread will be in every 10ms a data acquisition process, the type of data to send is QpointF.
in my main thread was written like this:
connect(workerthread, SIGNAL(newDataCome(const QPointF&)), this, SLOT(paintNewPoint(const QPointF&)));
connect(workerthread, SIGNAL(newDataCome(const QPointF&)), this, SLOT(paintNewPoint(const QPointF&)));
To copy to clipboard, switch view to plain text mode
the program works, but just only slowly..
Bookmarks