PDA

View Full Version : To set "ui->label->setPixmap()" from another Thread then main Thread



syclopse
5th July 2011, 10:56
Hello,

Can anybody tell me,

is it possible to access "ui->label" object from another thread then Main thread.?

mcosta
5th July 2011, 10:58
You shouldn't access GUI elements from non GUI threads.
Instead use signals/slots mechanism to share data between threads.

syclopse
18th July 2011, 13:59
ya that's true,
you can not access the UI members from outside the main GUI thread,
so try to use signal slot mechanism for that ....