Problem 1400

Summary: G4UIQt.cc pushbutton error
Product: Geant4 Reporter: ungaro
Component: interfacesAssignee: garnier
Status: RESOLVED FIXED    
Severity: normal    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

Description ungaro 2012-12-03 20:31:44 CET
For some reason I get these, even though setAccessibleName is a member of qwidget.h :


/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc:2193: error: ‘class QPushButton’ has no member named ‘setAccessibleName’
/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc: In member function ‘void G4UIQt::VisParameterCallback(QWidget*)’:
/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc:2630: error: ‘class QWidget’ has no member named ‘accessibleName’
/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc: In member function ‘void G4UIQt::ChangeColorCallback(QWidget*)’:
/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc:3028: error: ‘class QPushButton’ has no member named ‘accessibleName’
/opt/programs/Darwin_macosx10.6-i386-gcc4.2.1/geant4/4.9.6/source/geant4.9.6/source/interfaces/basic/src/G4UIQt.cc:3053: error: ‘class QPushButton’ has no member named ‘setAccessibleName’
Comment 1 garnier 2014-05-09 15:20:10 CEST
I assume that this bug was because you where compiling against Qt3?
Because setAccessibeName seems to been in Qt since Qt4.1 : http://doc.qt.digia.com/4.1/qwidget.html#accessibleName-prop

Perhaps you have both Qt3 and Qt4 installed at the same time.

Laurent