Bug 7.2 PyQt5 app bug

Storm Shadow

Administrator
Staff member
Developer
Ida Pro Expert
Elite Cracker
Hello
There is a wierd problem with running PyQt5 apps with ida 7.2+7.3
running a PyQt5 plugin via the plugin menu(ida_idaapi.IDAPython_ExecScript) runs the plugin but PyQt5 external window (if the app have a external window) wont show.
But in the log window you can see the app is runing.
But if you use file>>open scriptfile the app runs and show correct.

See test plugin.

Any idea what the reason could be?
 

Attachments

  • testplugins.zip
    42.6 KB · Views: 4
Last edited:

computerline

New member
Ida Pro Expert
The main in Style_Paste_main.py not run, just remove it, the plugin will run :D

Python:
...............................
			QtWidgets.QMessageBox.information(self.vindu,
					'Unable to open file', file.errorString())
		os.chdir(str(self.path))
 
import sys
#app = QtWidgets.QApplication.instance()
#if not app:
	 #app = QtWidgets.QApplication([])
StyleSheetEditor = QtWidgets.QWidget()
ui = Ui_StyleSheetEditor()
ui.setupUi(StyleSheetEditor)
StyleSheetEditor.show()
print "helllllllllllllllllllllllooooooooooooooooooooo"
	#app.exec_()
 
Last edited by a moderator:

Storm Shadow

Administrator
Staff member
Developer
Ida Pro Expert
Elite Cracker
The main in Style_Paste_main.py not run, just remove it, the plugin will run :D
how do you mean ?

if i remove


Code:
if __name__ == '__main__':
import sys
it still dont show.
Problem is not the plugin not running , but not showing in a seperate window.
you can see the plugin is loaded in the log menu, just not showing.
 

Storm Shadow

Administrator
Staff member
Developer
Ida Pro Expert
Elite Cracker
Sorry actuelly removing the main does show the widget.
It could however have unknown conflicts on bigger apps with many widgets.
 
Top