[Tutor] PyQt segfault
Alan Gauld
alan.gauld at btinternet.com
Fri Nov 30 14:13:39 CET 2007
"Tiago Saboga" <tiagosaboga at terra.com.br> wrote
> I am making a front-end to ffmpeg with pyqt and I am stuck in a
> segmentation fault I can't understand. I have written a little
> def main(args):
> app = QtGui.QApplication(args)
> win = Combobox()
> win.show()
> app.exec_()
>
> print type(Aux.mystring)
> # If uncommented segfaults
> # mystring = unicode(Aux.mystring)
> print ("The same" if Aux.mystring==Aux.mystring2 else
> "Different")
It looks from this that it has nothing to do with Qt per se.
Does unicode() work OK outside of Qt?
Or is Aux.mystring an insance of a QtString class that you need to
deference to get the real string that unicode will understand?
All I can think of, not knowing anything much of Qt.
Alan G.
More information about the Tutor
mailing list