Qt Status bar (was RE: TProfile::Scale() and bin errors)

From: Fine, Valeri <fine_at_bnl.gov>
Date: Fri, 13 Jan 2006 13:28:34 -0500


Hello Luc,
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 ?

The bottom line: YES, OF COURSE.
See:
http://root.bnl.gov/QtRoot/TQtStatusBar.gif  

> ( i have already a displayed histogram in a pad and i 'd like have
> status information where my mous is)

Can you elaborate a little bit more, what you are doing?

I mean, TQtWidget is a "plain single" Qt widget to render to TPad staff. It has no any extra widgets like "statusbar" "menu" etc

To get all of these things one should create something like QMainWindow http://doc.trolltech.com/3.3/qmainwindow.html with TQtWidget http://root.bnl.gov/QtRoot/htmldoc/TQtWidget.html as its "central widget"
http://doc.trolltech.com/3.3/qmainwindow.html#setCentralWidget using Qt Desinger http://root.bnl.gov/QtRoot/QtRoot.html#designer (of course it is not only solution)

There are many working examples those show how to do that http://root.bnl.gov/QtRoot/QtRoot.html#features

You can get all of them at once by installing "Qt Extension" from

http://root.bnl.gov 
http://root.bnl.gov/QtRoot/How2Install4Unix.html 
http://root.bnl.gov/QtRoot/QtRoot.html#helloroot 



Anyway, please give me the concrete information about your task to provide advice that is more concrete:)

Thank you

                     Valeri

>
> Thank you for your help!
>
> Luc
>
>
> --
> ------------------------------------------------------------
> - Luc LEGEARD - Tel : 02 31 45 44 36 -
> - GANIL BP 55027 Bd Becquerel - Fax : 02 31 45 47 97 -
> - 14076 CAEN Cedex 5 - mailto:legeard_at_ganil.fr -
> - Web http://www.ganil.fr
Received on Fri Jan 13 2006 - 19:28:45 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:56 MET