View Full Version : Error because of thread ..
riarioriu3
6th July 2012, 08:20
I am using the QLineedit in my application (lineedit->setEnabled(false)).. but when in my application that QLineedit is accessed , it shows its being used by some other thread , where as the current thread is something different ..
I have attached the screenshot for the reference ..
can anyone help for resolving this issue ??
Thankx in adv .
7969
wysota
6th July 2012, 08:28
You can't access widgets from within worker threads.
riarioriu3
6th July 2012, 08:39
What do you mean by worker thread ?
so what could be the possible solution for the above issue ?
wysota
6th July 2012, 09:01
What do you mean by worker thread ?
I mean the thread you are accessing the widget from :)
so what could be the possible solution for the above issue ?
The solution is not to access the widget from a thread it is not meant to be accessed by. I'm not able to say more without knowing what you did.
high_flyer
6th July 2012, 11:02
What do you mean by worker thread ?
If yon don't know what worker thread is, you should not be using threads at all!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.