def useProperties(cls):
    """
    Adds Python properties for each Qt property in a class.
    """
    def getter(name):
        def get(self):
            return self.property(name)
        return get
    def setter(name):
        def set(self, value):
            return self.setProperty(name, value)
        return set
    for name in iterProperties(cls):
        setattr(cls, name, property(getter(name), setter(name)))
    return cls

    Adds Python properties for each Qt property in a class.
    
recipes/Python/577539_Convert_PyQt_properties/recipe-577539.py