[Qt-interest] How to do it... in a QThread?
Jason H
scorp1us at yahoo.com
Fri Aug 5 00:53:25 CEST 2011
If A B C and D are GUI objects (QLabel) you can't.
If they are one of Qt's implicitly shared classes, then no problem.
If A B C and D are data for use in GUI objects (QLabel), then use the implicitly shared classes as return types (QString).
Also look into using QRunnable.
________________________________
From: Luiz Vitor Martinez Cardoso <grabber at gmail.com>
To: qt-interest at qt.nokia.com; qt-interest at trolltech.com
Sent: Thursday, August 4, 2011 6:20 PM
Subject: [Qt-interest] How to do it... in a QThread?
Dear,
I'm struggling on a problem.
Let's suppose we have a Qt GUI Application with just a simple QButton.
When the application is started the main constructor perform some operations and set A,B,C and D variables values;
When I press the QButton I want to start a parallel process (Thread) to do some operations using A, B, C and D. I will use a QMutex to keep everything safe.
How can I make A, B, C and D visible to Thread? What I mean is: How can I manipulate the content of A, B, C and D, perform something and update the values?
Best regards,
Luiz.
--
Regards,
Luiz Vitor Martinez Cardoso
Celular: (11) 8187-8662 | Skype: grabberbr
engineer student at maua.br
intern marketing engineer at gepower.com
entrepreneur at adboxnetwork.com
"If you wanna be successful, you need total dedication, go for your last limit, give your best and love your love infinitely!"
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110804/21d4aabc/attachment-0001.html
More information about the Qt-interest-old
mailing list