Crashes after clicking OK in the dialog, on Linux.
Also IDA has PyQt5 shim, so I think this loading attempt order should be reversed, or it'll end up using the shim instead of real PySide6:
|
def can_use_qt(): |
|
try: |
|
import sip |
|
from PyQt5 import QtCore |
|
from PyQt5 import QtWidgets |
|
from PyQt5 import QtGui |
|
# for ida 9.2 or later |
|
except ImportError: |
|
from shiboken6 import wrapInstance as wrapinstance |
|
from PySide6 import QtCore |
|
from PySide6 import QtWidgets |
|
from PySide6 import QtGui |
|
except ModuleNotFoundError: |
|
return False |
|
return True |