Bringing IDA PRO plugin writing into 2014

Storm Shadow

Administrator
Staff member
Developer
Ida Pro Expert
Elite Cracker
I have some days playing with ida pro and PYQT.
only to find out that hexrays way off implimenting QT / PySide it is old and buggy.
Thing is that ida itself is a QT app, and Qt app + Qt app = CRASH!!

So i set the task off doing it right. Making it how it should be from start.tricking IDA PRO and make real QT apps
its a little long, but would definitely change plugin writing, so hope you 12 minuts.
https://www.firedrive.com/file/89A4B7D70955D012
https://anonfiles.com/file/92f31876e350993be670fd658d5d7d05
We can also call the app via hotkey so you know.

Just zoom ctrl + to get better view
 

Attachments

  • testexe.zip
    1 KB · Views: 21
Last edited:

Storm Shadow

Administrator
Staff member
Developer
Ida Pro Expert
Elite Cracker
Got QAplications to work in Windows and Ida at the same time.
you have to edit at the end off the file and insert this

Python:
app = QtGui.QApplication.instance()
	if not app:
		app = QtGui.QApplication([])
before we had to change QAplication to Qwidget, the fix above should work on both apps.

before
Python:
if __name__ == "__main__":
	import sys
	app = QtGui.QApplication(sys.argv)
	Frame = QtGui.QFrame()
	ui = Ui_Frame()
	ui.setupUi(Frame)
	Frame.show()
	sys.exit(app.exec_())

after
Python:
if __name__ == "__main__":
	import sys
	app = QtGui.QApplication.instance()
	if not app:
		app = QtGui.QApplication([])
	Frame = QtGui.QFrame()
	ui = Ui_Frame()
	ui.setupUi(Frame)
	Frame.show()
	app.exec_()
 
Last edited:
Top