Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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;
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict