Skip to content

Instantly share code, notes, and snippets.

@derchrisuk
Created February 18, 2018 16:01
Show Gist options
  • Save derchrisuk/cf45099b5d98b8f9f6a311e4fcc95ec2 to your computer and use it in GitHub Desktop.
Save derchrisuk/cf45099b5d98b8f9f6a311e4fcc95ec2 to your computer and use it in GitHub Desktop.
Qt5 version check
import inspect
from PyQt5 import Qt
vers = ['%s = %s' % (k,v) for k,v in vars(Qt).items() if k.lower().find('version') >= 0 and not inspect.isbuiltin(v)]
print('\n'.join(sorted(vers)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment