PDA

View Full Version : QString::toStdString in PyQt Question



di_zou
2nd November 2009, 19:23
If I have this code in PyQt:

b.toStdString()
What is returned by toStdString? b is a QString. Also, is there a reference site for PyQt similar to the Trolltech Qt reference site (http://doc.trolltech.com/)?

franz
2nd November 2009, 20:09
I´m not altogether too familiar with PyQt, but it might be that it just returns a python string. Maybe you can get zome information by reading the python docstring:

help(QString.toStdString) # if I recall correctly