Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
crash in qtguid.dll
Hello,
I'm trying to write a program that reads from serial and updates QDoubleSpinBoxes in my ui. The Read operation from serial is done in a seperate Qthread in a while loop. It polls data and updates ui from a pointer (like: itsUserInterface->updateFields(), actually this function updates all spinboxes in the form (iu.MySpinBox->setValue( blabla) ) but when it starts it crashes randomly. Also the update of the form is done partially. What can i do?
Regards,
Thanks.
Yigit
all gui operations must be done from the main thread of your application
emit some signal from your serial reading thread to send data
connect this signal to some slot of an object created in the main thread
and, from this slot, update the gui