Hi Anton, the ROOT signal/slot implementation uses the CINT dictionary for all its magic. Qt uses its own meta object system which in addition relies on Qt specific language extensions (signal: and slot: keywords) which CINT of course does not understand. I've no time to look into coupling the ROOT signals to Qt slots and vice versa. But if somebody wants to try s/he is welcome. Hoever, we surely will not embed the Qt keywords in the ROOT headers. To get Qt widgets from the interpreter you will have to generate CINT dictionaries for the Qt classes. However, to have compiled Qt call interpreted Qt slots, will be very difficult. Cheers, Fons. On Mon, Nov 06, 2000 at 10:45:50PM +0000, KOSU_FOKIN@garbo.lucas.lu.se wrote: > Hi Fons, Denis and rooters, > > I have noticed your are working on 2.26 which is in cvs > now. It looks like ROOT Q_OBJECT feature and signal/slot > mechanism will be implemented in this new version. That's > fine. On the other hand we know about QROOT interface between > Qt and ROOT, thanks to Denis and Co. My questions are: > > Will we have ROOT qobjects and signasl/slots working with Qt > signals/slots? > > I have tried to inherit a class from both TObject and QObject > to get ROOT I/O plus Qt support. It turned out to be not so > easy to parse the header with both CINT and moc. I have managed > to cheat CINT with #ifdef __CINT__ but I do not know how to cheat > moc in the same way. It doiesn't like ClassDef macro... > > Fons, do you think we can manage to get things working together in > a nice way? Do you think we can let ROOT native GUI > widgets to have the same names for slots/signals as Qt has to easily > (where possible) switch between Qt and ROOT GUI? > > Can we have Qt widgets running from the interpreter? > > By the way, Denis, have you tried to TRint instead of TApplication? > Does it work OK with interpreter event loop? > > Regards, > Anton > > -- 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:36 MET