Wednesday, 15 July 2015

Howto retrieve the running qt version in qt5? -


Do I want to know the version of QT that my app is currently running?

Not about Qt Dialog QMessageBox or QApplication!

Is there any string or et which defines Qt version?

Thanks

You can use the global qVersion function:

  const char * qVersion ()  

version returns the number of Qt in run-time as a string (for example, "4.1. 2"). It may be a different version than the version against which the application was compiled against.


No comments:

Post a Comment