Re: [ROOT] TTimer application hangs when using QT

From: Valeri Fine (fine@bnl.gov)
Date: Thu Apr 11 2002 - 16:38:45 MEST


Hello Mohammad.


> hallo all,

> Valeri wrote:

> >There is "some"  TVirtualX class implementations ( provided by two separate

> >organizations, namely GSI and BNL) using Qt as its low level interface with
the 
> >local GDI. 

> In our case at the GSI, this is not true, we don't have any TVirtualX
> implementation, what we have is QApplication which drives the TApplication
> via Timer (http://www-linux.gsi.de/go4/qtroot/html/qtroot.html). Using this
> interface on Linux we have the full functionality of both Root and Qt
> including threads and Timers.

I agree. I have to beg a pardon. What you say is true:-). GSI implementation uses 
the existent X11 implementation of TVirtualX. TCanvas /TPad are drawn not by Qt rather by 
ROOT alone. That solution could be used under Windows as well. However it has no 
chance to be adopted since it implies one has to preserve the existent WIN32 speicific fork
within ROOT source. Re-writing TVirtualX with Qt may eliminate the fork.
I wonder if TVirtualX Qt implementation works in GSI Qt environment with no extra problem.


> Moreover, this interface was heavily tested in
. the Go4 Project (http://go4.gsi.de) which is a multi-threaded application. 

> In other words the Qt-Root interface provided by the GSI (Denis Bertini) is
> a full scale Qt-Root integration on Linux.

 Yes,  I agree.

It would be nice to see "adjusted xform.cc" Qt example

   http://www.usatlas.bnl.gov/~fine/QtRoot/XformExample.gif 

working with GSI full-scale implementation.


> cheers,  Mohammad

                 Best regards, Valeri



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:49 MET