How does your thread look like? Add in *.h file
Q_SIGNALS:
Q_SIGNALS:
void currentEquitation(QString);
To copy to clipboard, switch view to plain text mode
In the cpp, where you calculate a new equation simple do
Q_EMIT currentEquitation("Equitation foo");
Q_EMIT currentEquitation("Equitation foo");
To copy to clipboard, switch view to plain text mode
And then in your GUI class where you start your thread (assuming it is called thread and you have a QLabel called label):
QObject::connect(thread, SIGNAL(currentEquitation(QString)), label, SLOT(setText(QString)));
To copy to clipboard, switch view to plain text mode
That's all.
Bookmarks