D_N_R
12th April 2007, 21:36
Hello,
I've been spending a week to find a solution to this issue, there's definitly no way to write some text outside of the main GUI thread. Each time I tried, I got a "Xlib: unexpected async reply" error on the call to drawText() method.
I thought to use a signal/slot mechanism : it works when the signal is emited from the main GUI thread, but the problem is that I can't do this in my application because it's meant to be a server and its goal is to create a QImage with drawings and also some text, when a client requests it.
Recently I've been reading this page :
http://www.mizi.com/developer/mz20/413thread.htm
It states that there was some handlers in Qt3 to help synchronizing with the XLib, but I can't find them anymore in Qt4. Does anyone know any replacement mechanism ?
Thanks for your feedback
D_N_R
I've been spending a week to find a solution to this issue, there's definitly no way to write some text outside of the main GUI thread. Each time I tried, I got a "Xlib: unexpected async reply" error on the call to drawText() method.
I thought to use a signal/slot mechanism : it works when the signal is emited from the main GUI thread, but the problem is that I can't do this in my application because it's meant to be a server and its goal is to create a QImage with drawings and also some text, when a client requests it.
Recently I've been reading this page :
http://www.mizi.com/developer/mz20/413thread.htm
It states that there was some handlers in Qt3 to help synchronizing with the XLib, but I can't find them anymore in Qt4. Does anyone know any replacement mechanism ?
Thanks for your feedback
D_N_R