Qt shim that handles simple PySide vs PyQt5 imports
December 23, 2015 ยท View on GitHub
def get_QtCore(): try: # IDA 6.8 and below import PySide.QtCore as QtCore return QtCore except ImportError: # IDA 6.9 import PyQt5.QtCore as QtCore return QtCore
def get_QtGui(): try: # IDA 6.8 and below import PySide.QtGui as QtGui return QtGui except ImportError: # IDA 6.9 import PyQt5.QtGui as QtGui return QtGui