diff --git a/spack.yaml b/spack.yaml
index b800f7712a6b7092040ed02fe11c970fd530f733..2fa59e8453250eab009ddf0e32bc634536a200e6 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -28,7 +28,7 @@ spack:
     - python@3.9.7
     - py-numpy@1.21.3
     - py-pip@21.1.2
-    - qt +opengl
+    - qt@5.15.2 +opengl
     - root@6.24.06 cxxstd=17 
           +fftw +fortran +gdml +http +mlp +pythia8 
           +root7 +tmva +vc +xrootd +ssl