def validate(s):
# the slash character is used by QSettings to denote a subgroup
# we want to have a single nested structure of settings
if "/" in s:
return False
if "\\" in s:
# QSettings automatically translates '\' to '/'
return False
return True
# provide base constructor args required by settings providers
评论列表
文章目录