'Test if QSettings as exported by qtcompat has the \'type\' parameter.'

def test_qsettings_type(self):

    with tempfile.NamedTemporaryFile('w+b', suffix='.ini', delete=False) as f:
        settings = QSettings(f.name, QSettings.IniFormat)
        settings.setValue('bar', 'foo')
        self.assertEqual(settings.value('bar', type=str), 'foo')
        settings.setValue('frob', 4)
        del settings
        settings = QSettings(f.name, QSettings.IniFormat)
        self.assertEqual(settings.value('bar', type=str), 'foo')
        self.assertEqual(settings.value('frob', type=int), 4)
