From 70ff70652c444767ab78b5bb86f25786c83b9c64 Mon Sep 17 00:00:00 2001 From: Geoffray Levasseur Date: Wed, 4 Nov 2026 15:35:05 +0100 Subject: [PATCH] fix rendering issue --- widget/include/Dpi/DpiGraphics.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/widget/include/Dpi/DpiGraphics.h b/widget/include/Dpi/DpiGraphics.h index 4ae5419..46b372b 100644 --- a/widget/include/Dpi/DpiGraphics.h +++ b/widget/include/Dpi/DpiGraphics.h @@ -111,7 +111,13 @@ public: Brush(); QColor color() const { return m_color; } - void setColor(const QColor &value) { m_color = value; } + // Like VCL/LCL: choosing a colour turns a clear brush back into a solid one. + void setColor(const QColor &value) + { + m_color = value; + if (m_style == Qt::NoBrush) + m_style = Qt::SolidPattern; + } Qt::BrushStyle style() const { return m_style; } void setStyle(Qt::BrushStyle value) { m_style = value; }