Convert QStingList to Python list

2010-11-27 Thread Peter Chant
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

Re: Convert QStingList to Python list

2010-11-27 Thread Peter Otten
Peter Chant wrote: The following code generates a QStringList: fileNames = QFileDialog.getOpenFileNames(None,Chose raw file,.,) Printing it: print Files selected +QStringList(fileNames) You say that fileNames already is a QStringList. Why are you trying to convert it to a QStringList

Re: Convert QStingList to Python list

2010-11-27 Thread Peter Chant
Peter Otten wrote: Try it out yourself in the interactive interpreter. Here's a sample session: Peter, thanks. I've got some way to go with python and have only just started looking at Qt, your help has been very useful. Pete -- http://www.petezilla.co.uk --