Skip to content

Instantly share code, notes, and snippets.

@janpipek
Last active October 7, 2015 15:17
Show Gist options
  • Save janpipek/ec56a66233698841f5bf to your computer and use it in GitHub Desktop.
Save janpipek/ec56a66233698841f5bf to your computer and use it in GitHub Desktop.
FIx to use Qt5 with Geant4 10.1.p02
diff -rup geant4.10.01.p02-p/source/interfaces/basic/src/G4UIQt.cc geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc
--- geant4.10.01.p02-p/source/interfaces/basic/src/G4UIQt.cc 2015-03-16 16:55:41.000000000 +0100
+++ geant4.10.01.p02/source/interfaces/basic/src/G4UIQt.cc 2015-10-07 15:52:15.182301156 +0200
@@ -721,7 +721,7 @@ bool G4UIQt::AddTabWidget(
fViewerTabWidget->addTab(aWidget,name);
- fViewerTabWidget->setCurrentIndex(fViewerTabWidget->count()-1);
+// fViewerTabWidget->setCurrentIndex(fViewerTabWidget->count()-1);
// Set visible
#if QT_VERSION < 0x040200
@janpipek
Copy link
Author

janpipek commented Oct 7, 2015

Fix Geant4 source so that Qt UI does not cause core dumps.

@janpipek
Copy link
Author

janpipek commented Oct 7, 2015

Download and in your source dir just type

patch -p1 < fix-geant4.10.1.2-qt5.patch 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment