Re: toStringList in PyQt5

2015-01-05 Thread Chris Angelico
On Tue, Jan 6, 2015 at 5:04 AM, Suhail Mahmood wrote: >self.recentFiles = settings.value("RecentFiles").toStringList() >AttributeError: 'NoneType' object has no attribute 'toStringList' This sounds to me like your RecentFiles setting doesn't exist yet. You could try a two-step

toStringList in PyQt5

2015-01-05 Thread Suhail Mahmood
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 QStr