[ROOT] QtROOT

From: Anton Fokin (anton.fokin@smartquant.com)
Date: Wed Apr 10 2002 - 13:24:10 MEST


Valera,

I would love to try it out but as I said it QtROOT hangs on win98 :) Do you
have any win98 comp around?

Many people still actively use 98, especially on portables.

Cheers,
Anton

> Hi Valery and guys,
>
> I've just installed Qt root v 3.03/03
>
> 1. root.exe hangs on windows 98 after I set QTROOT = yes

    It could be. I did not check things under Windows 98. (see my remarks)
    http://www.usatlas.bnl.gov/~fine/QtRootDownload.html

> 2. Is it possible in this version to write a wrapper around Qt widget and
> then call this wrapper from CINT. I.e. can I write "normal" root class
> TQtMessageBox which wraps around QMessageBox and is callable from CINT
> showing Qt message box?

  Yes it should be possible.(ROOT does crreate QApplication instance and
  launches Qt GUI thread for you. (See my example test/qt/xform.cpp for more
  sophisticated approach)

   1. Create your class header file (no Qt include inside to avoid CINT
confusion)
   2. Create RootCint dictionary as usualy from ypour class header file.
   3. Call QMessageBox methods from within your class implementation,
   4. Load share library into ROOT session
   5. Use your class from the command line.

 Note: This should work for something simple like QMessageBox.
          This approach may cause some problem (it depends of the interval
Qt implementation)
          Please, try it, If you will hit the troubles I'll provide another
(thread safe) solution.

              Best regards, Valeri




http://www.smartquant.com



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET