Hi Rooters
I am trying to build a “ROOT-based QT application” and I have some problems.
I am using a Linux box ( Redhat 8 ). On this platform, the QT package is pretty old (version 3.0.5) so I installed QT3.3.4 into my home directory and buit it with the following options: -debug -qt-gif -thread -no-xft -no-exceptions . I also have added in my .cshrc file the QTDIR variable and updated the $PATH and $LD_LIBRARY_PATH to be sure that I would pick the right QT version.
I have also installed root_v4.04.02f (using the ROOTSYS variable for installation) with the following flags:
–enable-opengl --enable-shared --enable-thread --enable-sov
ersion --enable-qt --with-qt-incdir=${QTDIR}/include --with-qt-libdir=${QTDIR}/lib
But when I tried it, a couple of things are not running so smoothly.
-
Missing files:
It looks like there is no rootcint.pri nor TQtWidget.cw in the production version (root_v4.04.02f ). Is that normal? I move then to the dev version using the same flags and noticed that the .pri and .cw are not copied with the “make install” command. I had to copy them by hand. -
Fonts problem:
Without a modified .rootrc, root starts correctly, and I have the message :
“FreeType Engine v2.1.9 used to render TrueType fonts”.
When I tried to swith to QT, using the .rootrc file as described in page 361 of the new ROOT Guide 4.04, I have the following message:
** $Id: TGQt.cxx,v 1.17.2.1 2005/07/11 17:03:24 rdm Exp $ this=0x8920250
The font “symbol.ttf” was not installed yet. Substitute it with "Arial"
Make sure your local “~/.fonts.conf” or “/etc/fonts/fonts.conf” file points to “$ROOOTSYS/fonts” directory to get the proper support for ROOT TLatex class. -
Crashes when interacting with the widgets
When using the qt backend, I noticed that very often interacting with the canvas is slower that with “native” root gui. Also when I right-click on the Canvas to get the DrawPanel method, the editor takes a long time to pop-up and sometimes doesn’t display anything (it stays grey). Interacting with the widgets in the editor make the system either freeze, either crash. I don’t have this problem when I turn off the qt backend. -
Anti-aliasing.
It simply doesn’t work. However, the true-types fonts have been turned-on automatically by the ./configure and the qt flag -no-xft has been used as indicated in the ROOT manual.
Is there something I am doing wrong? Is this possible that the qt version 3.0 my system uses (since I am working under kde) and theqt version 3.3.4I have installed for ROOT backend are interacting and causing me all those problems?
Thanks for your help