I was following the examples in 'Rapid GUI Development with Python and Qt' by 
Mark Summerfield. Sadly I am using PyQt5 and all the examples in this book are 
for PyQt4. But I have converted the codes to PyQt5 codes. But still I am having 
some problems. In chapter 6, there is something called QString, which I can't 
import(I guess this is more available in Pyqt5). Also, there is QSettings, 
returning something in by using 

            settings.value("Recent files").toStringList()

where settings is an instance of QSettings. Now as I can't import QString, this 
line is giving me an error like this:

           self.recentFiles = settings.value("RecentFiles").toStringList()
       AttributeError: 'NoneType' object has no attribute 'toStringList'

How can I get around with this problem?
Thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to