> I am begging a pardon for changing the confusing Subj line :)
> > Hello Rooters
> >
> > Is it possible to diplay
> > event status bar
> > and editor ( like DrawPanel)
> > in a TQtWidget ?
>
TQtWidget object
http://root.bnl.gov/QtRoot/htmldoc/TQtWidget.html
generates a special Qt signal:
void RootEventProcessed(TObject *selected, unsigned int event, TCanvas
*c);
where:
"TObject *selected" - is the pointer to the ROOT object selected by
the ROOOT TCanvas "unsigned int event" - The ROOT " EEventType" event (see:
TCanvas *c - a pointer to the TCanvas object selected by the "selected" TObject (firstparameter)
for each mouse event happened within the widget client area.
You are free to connect this signal to your custom Qt slot. The 60 lines long C++ code "Histogram browser" shows the example: http://root.bnl.gov/QtRoot/root/qtExamples/ex1/README
grep -n RootEventProcessed *.*.*
38: connect(tQtWidget1,SIGNAL(RootEventProcessed(TObject *, unsigned int, TCanvas *)),this,SLOT(CanvasEvent(TObject *, unsigned int, TCanvas *)));
39: connect(tQtWidget2,SIGNAL(RootEventProcessed(TObject *, unsigned int, TCanvas *)),this,SLOT(CanvasEvent(TObject *, unsigned int, TCanvas *)));
If you do not like "qt signal you can use "ROOT Signal" instead.
One can assign a "ROOT Slot" to use the "ROOT Signal" generated by
TCanvas also:
http://root.cern.ch/root/htmldoc//src/TCanvas.cxx.html#TCanvas:Processed
Event
Hope this helps, Valeri Received on Fri Jan 13 2006 - 21:03:47 MET
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:56 MET