0

I have a code and inherited from a Qt class, So :

print mystr.encode("utf-8")

give me the following error:

AttributeError: 'QString' object has no attribute 'encode'

So, I decided to use Qt ready dialog, because i know it have same dialog for throublshooting such as alert in JavaScript, My coworker was using in C++ same thing.

Question: Which is name of their function?

4

1 回答 1

1
QMessageBox.information(...)

它的 Api 参考 - http://pyqt.sourceforge.net/Docs/PyQt4/qmessagebox.html#information

于 2013-09-04T23:44:00.940 回答