[Qt-interest] please help me with this problem

alexander golks alex at golks.de
Wed Dec 9 11:08:26 CET 2009


> w->wait() doesn't block the worker thread at all. It blocks the calling thread 
> (in this case, the GUI one) until the worker thread finishes executing.
> 
> I suggestion you simply don't call wait() and change the connection to 
> QueuedConnection (or AutoConnection). Right now, you're calling update() from 
> the worker thread, which isn't allowed.

i've compiled Yifei Li's code with vsc++ without the w->wait() in main.
the update() is in the main thread, or am i missing something?
additionaly i qDebug the msg in here:

void Scene::setMessage(QString msg)
{
	m_msg = msg;
	qDebug(msg.toLating1().data());
	update();
}

but i don't the the updates either, whereas the debugging messages where send to my debugger output.

so whats wrong?

-- 
/*
 *  printk(KERN_CRIT "How did I get here?\n");
 *    linux-2.6.19/arch/mips/kernel/syscall.c
 */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091209/7f0363ee/attachment.bin 


More information about the Qt-interest-old mailing list