RE: TGFileContainer MultipleSelections

From: Lee, Kerry T. \(JSC-SF\)[UHCL] <>
Date: Sun, 26 Mar 2006 13:01:11 -0600

HI Valeri,

Thanks for the info, I will try this. I spent a good deal of time reading about Qt and noticed that it may also be able to address a different issue that I have been trying to confront. That is access to SQL Server 2000 Databases. Do you know if anyone has tried to use the Qt layer to try and communicate with a DB from ROOT? I was investigating using RDBC from the MINOS online software for this purpose, but if I can use Qt it might be worth doing. Any thoughts?

Thanks for your help and I'll let you know if I have any problems with the steps you have outlined.


-----Original Message-----
From: Fine, Valeri [] Sent: Sun 3/26/2006 12:27 PM
To: Fine, Valeri; Ilka Antcheva; Lee, Kerry T. (JSC-SF)[UHCL]; Subject: RE: [ROOT] TGFileContainer MultipleSelections  

 I am sorry, I missed to add the relevant ROOT macro.  

 Assuming you have the standard ROOT installation with Qt  (for example at CERN)  

  1. setup ROOT and QT environment. For example, at CERN "lxplus" you can execute the script

2. Make a local copy ."rootrc" file to turn on the Qt-layer

3. Copy the C++ ROOT macro

ifndef __CINT__

#  include <qfiledialog.h> 
#  include <qstringlist.h> 
#  include <qstring.h> 

void FileDialog() {

// gSystem->AddIncludePath("-I$QTDIR/include"); // See:
  QStringList files = QFileDialog::getOpenFileNames ();   

  QStringList::Iterator it = files.begin();   while ( it != files.end() ) {

      printf ("Next file selected: %s\n", (const char *)(*it));


4. Start ROOT session and execute 2 ROOT command     

root [0] gSystem->AddIncludePath("-I$QTDIR/include"); root [1] .x FileDialog.C++

5. You should get the Qt widget

6. You should see the the of the selected file names

If you don't this maynave ment there is some bug to be fixed. Please file the ROOT bug report.

Either way your kind feedback would be appreciated a lot.

 Thank you, Hope this helps  


From: Fine, Valeri
Sent: Sat 3/25/2006 12:21 PM
To: Ilka Antcheva; Lee, Kerry T. (JSC-SF)[UHCL]; Subject: RE: [ROOT] TGFileContainer MultipleSelections  

My I remind people that there is the back door called Qt-layer  

If you need "multiple selections" now you can use Qt class
(you should turn on the Qt layer using ".rootrc". resource file see
<x-excid://3E8A0000/uri:> page
As soon as ROOT TG provides the function you are seeking you may have replaced it back with the "TG" counterpart.  

Hope this helps Valeri

From: Ilka Antcheva
Sent: Sat 3/25/2006 4:17 AM
To: Lee, Kerry T. (JSC-SF)[UHCL]; Subject: RE: [ROOT] TGFileContainer MultipleSelections

Hi Kerry,  

This feature is not available yet in TGFileConaines but will come soon because of internal needs to have it. We will keep you informed.  

Cheers, Ilka

From: on behalf of Lee, Kerry T. (JSC-SF)[UHCL] Sent: Sat 3/25/2006 12:36 AM


Subject: [ROOT] TGFileContainer MultipleSelections

Dear Rooters,

How do I allow for multiple selections via a mouse click within a TGFileContainer?


Kerry Received on Sun Mar 26 2006 - 21:01:53 MEST

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