[Qt-interest] Is it safe to connect different threads by Qt::DirectConnection?
Mihail Naydenov
mlists at ymail.com
Sat Dec 5 10:18:54 CET 2009
>From: donglongchao <donglongchao at 163.com>
>To: Qt Devel <qt-interest at trolltech.com>
>Sent: Sat, December 5, 2009 6:45:50 AM
>Subject: [Qt-interest] Is it safe to connect different threads by Qt::DirectConnection?
>
>
>Hi,
>
>...
>.Now I have one GUI thread and one work thread and there is a QTimer object lives in my work thread.
>...
>Since the QTimer object and the work thread live in different threads
So, where does the timer lives ?
Also why is that "if
I do not set the fifth parameter of QObject::connect(...),the slot function
will run in GUI thread"
...setting the fifth cannot change that...
You should post some code, I (completely) fail to understand your configuration, and what the problem is.
MihailNaydenov
>...
>
>Longchao.
>
More information about the Qt-interest-old
mailing list