Message: Re: Geant4.10.01.p02 ‘class QVBoxLayout’ has no member named ‘setContentsMargins’ Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Geant4.10.01.p02 ‘class QVBoxLayout’ has no member named ‘setContentsMargins’ 

Forum: Installation and Configuration
Re: None Geant4.10.01.p02 ‘class QVBoxLayout’ has no member named ‘setContentsMargins’ (Beatrice Panico)
Date: 13 Jul, 2015
From: Ben Morgan <Ben Morgan>

On Mon, 06 Jul 2015 15:56:49 GMT, Beatrice Panico wrote:
> Trying to install Geant4 version 10.01.p02 under SL5 I get the following
> errors:
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:
> In member function �QWidget* G4UIQt::CreateHelpTBWidget()�:
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:308:
> error: �class QVBoxLayout� has no member named �setContentsMargins�
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:
> In member function �G4UIDockWidget* G4UIQt::CreateCoutTBWidget()�:
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:448:
> error: �class QHBoxLayout� has no member named �setContentsMargins�
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:
> In member function �void G4UIQt::updateHelpArea(const G4UIcommand*)�:
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:2761:
> error: �class QTableWidget� has no member named �setWordWrap�
> 
> /Geant4/Geant_v4.10/geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc:2799:
> error: �NoItemFlags� is not a member of �Qt�
> 
> I compile with cmake28
> -DCMAKE_INSTALL_PREFIX=/Geant4/Geant_v4.10/geant4.10.01.p02-install
> -DQT_QMAKE_EXECUTABLE=/usr/lib64/qt4/bin/qmake -DGEANT4_INSTALL_DATA=ON
> --DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON
> /Geant4/Geant_v4.10/geant4.10.01.p02
> 
> What can I do?
> 

SL5 is no longer supported for Geant4 10.1. In the above case it looks like the system Qt4 is too old to support the Geant4 driver. Though SL5 isn't supported, you could try installing a newer Qt4 version (4.6 is the current minimum, but 4.8 is the latest 4 series) and see if that resolves the issue.

Cheers,

Ben.

 Add Message Add Message
to: "Re: Geant4.10.01.p02 ‘class QVBoxLayout’ has no member named ‘setContentsMargins’"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]