Ignore:
Timestamp:
Jun 8, 2007, 4:43:51 PM (17 years ago)
Author:
garnier
Message:

r589@mac-90108: laurentgarnier | 2007-06-08 15:41:35 +0200
probleme avec les layout, revenons a qq chose de simple

File:
1 edited

Legend:

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

    r484 r496  
    5252//static char** args      = NULL;
    5353// static QtAppContext appContext = NULL;
    54 static QMainWindow *mainWidget = NULL;
     54//static QApplication app = NULL;
    5555
    5656/***************************************************************************/
     
    8888
    8989    new QApplication (a_argn, a_args);
    90     mainWidget = new QMainWindow();
    9190
    92     if(mainWidget==NULL) {
     91    if(qApp==NULL) {
    9392      G4cout        << "G4Qt : Unable to init Qt." << G4endl;
    9493    }
    9594    QtInited  = TRUE;
    96     mainWidget->show();
    97     qApp->exec();
     95    SetMainInteractor (qApp);
    9896  }
    99 //  AddDispatcher     ((G4DispatchFunction)QtDispatchEvent); // FIXME
     97  SetArguments      (a_argn,a_args);
     98  //  AddDispatcher     ((G4DispatchFunction)XtDispatchEvent);
    10099}
    101100/***************************************************************************/
     
    118117}
    119118/***************************************************************************/
     119/**
     120  Si j'ai bien compris, cette fonction ne sert à rien
     121 */
    120122void* G4Qt::GetEvent (
    121123)
     
    124126{
    125127//FIXME
    126    G4cout        << "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." << G4endl;
     128//   G4cout        << "G4Qt : Rien compris a cette fonction G4Qt::GetEvent." << G4endl;
    127129//  static XEvent  event;
    128130//  if(appContext==NULL) return NULL;
     
    130132//  QtAppNextEvent (appContext, &event);
    131133//  return         &event;
     134  printf(" Si j'ai bien compris, cette fonction ne sert à rien");
    132135}
    133136/***************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.