Reputation: 2935
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
?
Upvotes: 0
Views: 65
Reputation: 1039
QMessageBox.information(...)
Api reference for it- http://pyqt.sourceforge.net/Docs/PyQt4/qmessagebox.html#information
Upvotes: 1