Hello, I am currently thinking and collecting the proposal about very issue you are rising. I assume the next pre-alpha release (as soon as I back to BNL) of http://www.usatlas.bnl.gov/~fine/QtRootDownload.html will be provided with some Qt Signal /SLOT's. The current goal is to introduce first the Qt Signal / Slot's those do not require any change of the current ROOT code. For example I think QT implementation of TVirtualX class can emit a Qt signal when TPad QPixmap is painted to the TCanvas double buffer. (i.e. by TVirtialX::CopyPixmap method.) At this time TPad is "ready" to be shown and this does not require any modification of TPad class interface. The signal may cary a pointer to the QPixmap object (TVirtualPad::GetPixmapID(). The last one can be used by the control Qt code to paint it onto the user custom QWidget. All ideas are welcome. Best regards. PS. May be we may not pollute the roottalk list on this. One may send me proposal directly: fine@bnl.gov -----Original Message----- From: Brett Viren To: Frederic Sarazin Cc: roottalk@pcroot.cern.ch Sent: 3/8/02 2:55 PM Subject: Re: [ROOT] IsModified() Hi, IsModified() is a query, I think a better way would be to change TPad.h from void Modified(Bool_t flag=1) { fModified = flag; } to void Modified(Bool_t flag=1) { // *SIGNAL* if (!fModified && flag) Emit("Modified()"); fModified = flag; } -Brett. Frederic Sarazin writes: > Dear ROOTers, > > I was wondering what would be the best SIGNAL that could be send by QtRoot > to say that the current Pad has been changed or something new happened in > the > current pad (the purpose is to retrieve the informations of the histograms > contained > in this current Pad). > > I was thinking of gPad->IsModified()... however, in the QtRoot Version that > I have > (downloaded from the GSI-Go4 website), there is no signal avalaible from the > class > TQRootCanvas except Destroy(). > Is there any version of QtRoot that are more advanced and would have the > feature > I'm looking for ? > > Thanks for your continuous help, it is very much appreciated. > > Fred (TRIUMF) > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET