Getting the version numbers of Qt, SIP and PyQt

When you report a bug in PyQt you need to supply information about the configuration you are using, including the versions of the Qt library, SIP and PyQt modules. The following code should help.

   1 from PyQt4.QtCore import QT_VERSION_STR
   2 from PyQt4.pyqtconfig import Configuration
   3 
   4 print("Qt version:", QT_VERSION_STR)
   5 cfg = Configuration()
   6 print("SIP version:", cfg.sip_version_str)
   7 print("PyQt version:", cfg.pyqt_version_str)

PyQtWiki: Getting the version numbers of Qt, SIP and PyQt (last edited 2011-05-19 11:29:25 by DavidBoddie)