make sure style object is not garbage collected

This commit is contained in:
Jakub Trllo 2024-01-16 10:53:40 +01:00
parent e9387c1b28
commit b0a2c9689b

View file

@ -91,7 +91,8 @@ def set_style_property(widget, property_name, property_value):
if cur_value == property_value:
return
widget.setProperty(property_name, property_value)
widget.style().polish(widget)
style = widget.style()
style.polish(widget)
def paint_image_with_color(image, color):