Convert QStingList to Python list

Peter Chant peteRE at MpeteOzilla.Vco.ukE
Sat Nov 27 10:18:46 EST 2010


The following code generates a QStringList:

fileNames = QFileDialog.getOpenFileNames(None,"Chose raw file",".",)

Printing it:

print "Files selected "+QStringList(fileNames)

Results in:

TypeError: cannot concatenate 'str' and 'QStringList' objects

Any idea how to convert a QStingList into a python list?  pythonQtConv seems 
to come up in google but I've no idea how to import or invoke it.

Thoughts?

Pete


-- 
http://www.petezilla.co.uk



More information about the Python-list mailing list