Skip to content

capa explorer: PyQt / PySide upgrade #3095

@mr-tz

Description

@mr-tz

warning in IDA 9.3 with

cat ~/.idapro/cfg/idapython.cfg

#if __IDAVER__ >= 920
IDAPYTHON_USE_PYQT5_SHIM = 1
#endif

######################################################################
# Please note that IDA is now using Qt 6, and PyQt5
# support will be dropped eventually.
# It is recommended to port your scripts/plugins to PySide6
# as soon as possible.
# Essentially, that means rewriting statement such as:
#
#   import PyQt5
#   import PyQt5.QtWidgets
#   from PyQt5.QtGui import QGuiApplication
#
# into:
#
#   import PySide6
#   import PySide6.QtWidgets
#   from PySide6.QtGui import QGuiApplication
#
# More information here https://docs.hex-rays.com/user-guide/plugins/migrating-pyqt5-code-to-pyside6
######################################################################
/usr/local/google/home/moritzraabe/code/capa/capa/ida/plugin/item.py:55: RuntimeWarning: This bitwise operation relies on a PyQt5 shim feature. If PyQt5 is not imported, it won't work. For PySide6, use <EnumOrFlag>.value for bitwise operations instead
  self.flags = QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable
/usr/local/google/home/moritzraabe/code/capa/capa/ida/plugin/item.py:58: RuntimeWarning: This bitwise operation relies on a PyQt5 shim feature. If PyQt5 is not imported, it won't work. For PySide6, use <EnumOrFlag>.value for bitwise operations instead
  self.flags = self.flags | QtCore.Qt.ItemIsUserCheckable | qt_get_item_flag_tristate()

Metadata

Metadata

Assignees

No one assigned

    Labels

    ida-explorerRelated to IDA Pro plugin

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions