Re: [ROOT] GUI under win32 with VC++

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Tue Oct 15 2002 - 12:47:18 MEST


Hi Valeri,
I took the Qt version from http://root.bnl.gov and made some
tests. In principle everything works as far as I could see
in a first test, however what does the strange message mean
about another QPainter in the following simple session ?

C:\temp>root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   3.03/09 19 September 2002   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

Compiled for win32.

CINT/ROOT C/C++ Interpreter version 5.15.56, Sep 4 2002
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.


 --- Welcome to the ROOT general session ---

 *** Start at Tue Oct 15 12:39:43 2002 ***

Root> TH1F* h=new TH1F("h","h",100,0,100)
Root> h->Draw()
QPainter::begin: Another QPainter is already painting this device;
        A paint device can only be painted by one QPainter at a time
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
<TCanvas::MakeDefCanvas>: created default TCanvas with name c1
Root>

Furthermore, I cannot reproduce the nice canvases you show in the
.gif example files on the web (i.e. the one of the direct photons
where one can also input some commands and rotate etc...)
Could you please provide some simple test macros which show how
to exploit the nice ROOT/Qt facilities ?

For the moment I could not get anything extra compared to the native
win32 ROOT besides the extra (very nice !) features you mention on
the web pages (i.e. extra image formats for canvas saving and direct
output on the printer). 

                                               Cheers,
                                                Nick.


"Faine, Valeri" wrote:
> 
> I should work with win32gdk.
> I doesn't work with the current "native" win32.
> 
> Under Windows one can use MFC (non-portable) or Qt version also
> (see: http://root.bnl.gov )
> 
> The latter will work for both platforms in question, namely UNIX as well
> as Windows.
> 
>           Valeri
> 
> > -----Original Message-----
> > From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]
> > On Behalf Of Gilles Barouch
> > Sent: Monday, October 14, 2002 4:55 AM
> > To: roottalk@pcroot.cern.ch
> > Subject: [ROOT] GUI under win32 with VC++
> >
> >
> >
> > Hi,
> >
> > Does the root GUI work under Win32 with VC++ ?
> >
> > I just tried to compile the guitest.cxx example and I got the
> > following error message :
> >
> > " L'instruction a "0x00412dd0" emploie l'adresse memoire ... "
> >
> > Thanks.
> >

-- 
Dr. Nick van Eijndhoven mailto:nick@phys.uu.nl http://www.phys.uu.nl/~nick
--------------------------------------------------------------------------
Org.:    Utrecht University, Faculty of Physics and Astronomy
Address: Princetonplein 5, NL-3584 CC Utrecht, The Netherlands
Phone:   +31-30-2532331(direct) +31-30-2531492(secr.)  Fax: +31-30-2518689
CERN:    +41-22-7679751(direct) +41-22-7675857(secr.)  Fax: +41-22-7679480
Offices: Buys Ballot laboratory Room 710 (Utrecht)   B23 1-020 (CERN)
--------------------------------------------------------------------------



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