(C++) GetQtVersion

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) GetQtVersion

 

GetQtVersion is a version code snippets to obtain the version of the current Qt library in use.

 


#include <string> #include <Qt/qglobal.h> ///GetQtVersion returns the version of the Qt library installed. ///From http://www.richelbilderbeek.nl/CppGetQtVersion.htm const std::string GetQtVersion() {   return QT_VERSION_STR; }