library: libGQt #include "TQtApplication.h"

# TQtApplication

class description - source file - inheritance tree (.pdf)

## class TQtApplication

| Inheritance Chart:
`TQtApplication` |

        private:

                 void CreateGUIThread(int argc, char** argv)
          static void CreateQApplication(int argc, char** argv, bool GUIenabled)

        public:

                                 TQtApplication()
                                 TQtApplication(const char* appClassName, int argc, char** argv)
                                 TQtApplication(const TQtApplication&)
                         virtual ~TQtApplication()
                  static TClass* Class()
          static TQtApplication* GetQtApplication()
                 virtual TClass* IsA() const
                     static bool IsThisGuiThread()
                 TQtApplication& operator=(const TQtApplication&)
                    static Int_t QtVersion()
                    virtual void ShowMembers(TMemberInspector& insp, char* parent)
                    virtual void Streamer(TBuffer& b)
                            void StreamerNVirtual(TBuffer& b)
                     static bool Terminate()

### Data Members

        private:

          TQtApplicationThread* fGUIThread

        protected:

          static TQtApplication* fgQtApplication

## Class Description

     TQtApplication -  Instantiate the Qt system within ROOT environment

     Instantiate the Qt package by createing Qapplication object if any

TQtApplication(const char * /*appClassName*/, int argc,char **argv) : fGUIThread(0)

~TQtApplication()

     Send WN_QUIT message to GUI thread

void CreateQApplication(int argc, char ** argv, bool GUIenabled)

      Initialize the Qt package
      Check the QT_BATCH environment variable to disactivate Qt GUI mode

void CreateGUIThread(int argc, char **argv)

     Create GUI thread to Qt event loop

TQtApplication* GetQtApplication()

    ______________________________________________________________________________

bool Terminate()

     Terminate GUI thread

Int_t QtVersion()

     The Qt version the package was compiled with

bool IsThisGuiThread()

     Check whether the current thread belongs the GUI

### Inline Functions

             TQtApplication TQtApplication(const char* appClassName, int argc, char** argv)
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
             TQtApplication TQtApplication(const TQtApplication&)
            TQtApplication& operator=(const TQtApplication&)

Author: Valeri Fine 21/01/2002
Last update: root/qt:$Name: $:$Id: TQtApplication.cxx,v 1.7 2005/04/15 07:19:50 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *