Ignore:
Timestamp:
Nov 22, 2007, 6:07:00 PM (17 years ago)
Author:
garnier
Message:

r661@mac-90108: laurentgarnier | 2007-11-22 18:10:43 +0100
en debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/common/src/G4Qt.cc

    r608 r610  
    3232#if defined(G4INTY_BUILD_QT) || defined(G4INTY_USE_QT)
    3333
     34#define GEANT4_QT_DEBUG
     35
    3436#include <stdlib.h>
    3537#include <string.h>
     
    4042
    4143#include <qapplication.h>
     44#include <qpushbutton.h> // EN TEST
    4245
    4346
     
    9699#endif
    97100#if QT_VERSION < 0x040000
    98     qApp = new QApplication (a_argn, a_args);
     101    // EN TEST    qApp = new QApplication (a_argn, a_args);
    99102    //    QApplication qApp(a_argn, a_args);
    100103    //    if(&qApp == NULL) {
     
    119122  }
    120123#ifdef GEANT4_QT_DEBUG
    121   if (qApp) {
     124  //  if (qApp) {
    122125    printf("G4Qt::qApp exist\n");
    123   }  else {
    124     printf("G4Qt::qApp not exist\n");
    125   }
     126    //  =================== EN TEST ==============
     127    new QApplication ( a_argn, a_args );
     128
     129    QPushButton hello( "Hello world!", 0 );
     130    hello.resize( 100, 30 );
     131
     132    qApp->setMainWidget( &hello );
     133    hello.show();
     134    qApp->exec();
     135    printf("G4Qt::qApp exist END\n");
     136    //  =================== EN TEST ==============
     137    //  }  else {
     138    //    printf("G4Qt::qApp not exist\n");
     139    //  }
    126140#endif
    127141  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
Note: See TracChangeset for help on using the changeset viewer.