Qt 5 and openGL both are necessary for visualization

Hello everyone,
I am using window 10, visual studio 2019 and cmake-3.18.0 . I have installed geant4 without any error with openGL . But I haven’t turned on Qt (cmake -DGEANT4_USE_QT=ON .). I want to know for visualization openGL and Qt both are necessary or we can use any one of them.
If I didn’t install geant4 with Qt should I get any problem for further processes like physics process or tracking?
Please suggest me.
Thank You.

Actually I tried to install with Qt .When I turned On Qt means(cmake -DGEANT4_USE_QT=ON .) then everything is ok . It shows
GEANT4_BUILD_CXXSTD: Compiling against C++ Standard ‘17’
GEANT4_USE_QT: Build Geant4 with Qt support
GEANT4_USE_OPENGL_WIN32: Build OpenGL driver with Win32 support
– Configuring done
– Generating done
– Build files have been written to: C:/geant4/geant4_10_06_p02-build
But when I give ‘’ cmake --build . --config Release’’ this commend then it shows error. I am sharing a file which contains the output of this commend which comes with error.
QT_error.txt (640.3 KB)
And this file is G4UIQt.obj ,I am sharing this file because the error is unresolved external symbol in G4UIQt.obj and in its similar files.
G4UIQt.txt (913.4 KB)
Please help me how to fix it. Is there anything that I am missing ? Please suggest me.
Thank You.