Re: [ROOT] ROOT & KDE/Qt

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Oct 04 2000 - 12:44:48 MEST


Hi Mark,

  there should be no problem using KDE/Qt with ROOT (I've programmed myself
a bit for KDE using Qt, but not in combination with ROOT). However, GUI
applications are eventloop driven. Using Qt as GUI will mean you will use
Qt's eventloop and you will use ROOT as a toolkit (i.e. as a class library)
and not as a framework (i.e. ROOT will not control the event loop). No
problem here. You also should be able to draw ROOT graphics into a Qt
created window, How that can be done see the code of TRootEmbeddedCanvas
(http://root.cern.ch/lxr/source/gui/src/TRootEmbeddedCanvas.cxx).

Concerning the issue of replacing in ROOT the GUI by Qt, this is for the
time not feasible. Firstly there are licensing issues (GPL and no free
Win32 version of Qt) and secondly there is already a considerable amount
of code based on the ROOT GUI classes. Also we would loose the possiblilty
of calling GUI classes from scripts and doing I/O of GUI's (which still has
to be activated for the ROOT GUI classes, but is fairly simple to do).

If you need any help in the process let me know. Also the experience you gain
will be useful for other people wanting to go this path.


Cheers, Fons.


Mark Polsen wrote:
> 
> Hi Rooters,
> 
> I'm considering writing a GUI front end for some of the data analysis
> programs that I have and combine
> them into one package. I'm tempted to use the KDE/Qt libraries for the
> GUI because of the development
> tools that are available. My concerns are any problems that might arise
> between ROOT and KDE/Qt as
> opposed to using the ROOT GUI classes.
> 
> Has anybody here on this list used ROOT with KDE/Qt libraries any or no
> problems. I would also like to get
> input from users as to the pros/cons of using KDE/Qt over ROOT. As for
> now, the application would not be
> distributed except for maybe other users in my research group for
> testing purposes.
> 
> Any comments are greatly appreciated.
> 
> Thank You,
> Mark Polsen
> 
> -------------------------
> University of California, Riverside
> High Energy Astrophysics

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET