<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QTableWidget: Cells updating event]]></title><description><![CDATA[<p dir="auto">Hi!<br />
Is there some mechanism like 'OnDrawCell' from C++Builder/RAD Studio?<br />
In that method, there is work with Canvas, I could dynamically change Color, Text, etc of any cell, even the header cell. I just want to create a simple code for any cell.<br />
Thank you!</p>
]]></description><link>https://forum.qt.io/topic/116961/qtablewidget-cells-updating-event</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 10:25:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/116961.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jul 2020 11:52:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QTableWidget: Cells updating event on Fri, 17 Jul 2020 12:58:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sitesv">@<bdi>sitesv</bdi></a><br />
Hi<br />
Yes, that would be a job for a delegate.<br />
here is a sample where its a rating box<br />
<a href="https://doc.qt.io/qt-5/qtwidgets-itemviews-stardelegate-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtwidgets-itemviews-stardelegate-example.html</a></p>
<p dir="auto">but it could draw anything.</p>
]]></description><link>https://forum.qt.io/post/607454</link><guid isPermaLink="true">https://forum.qt.io/post/607454</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Fri, 17 Jul 2020 12:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to QTableWidget: Cells updating event on Fri, 17 Jul 2020 08:40:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrjj">@<bdi>mrjj</bdi></a> said in <a href="/post/606530">QTableWidget: Cells updating event</a>:</p>
<blockquote>
<p dir="auto">Hi<br />
A full blown OnDrawCell  like CB would be a delegate however, you can<br />
change color, font with Roles without resorting to custom drawing.</p>
</blockquote>
<p dir="auto">Hi!<br />
Is it possible to dynamically draw inside cells something like colored figures: square, rectangle, etc?</p>
]]></description><link>https://forum.qt.io/post/607418</link><guid isPermaLink="true">https://forum.qt.io/post/607418</guid><dc:creator><![CDATA[sitesv]]></dc:creator><pubDate>Fri, 17 Jul 2020 08:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to QTableWidget: Cells updating event on Mon, 13 Jul 2020 16:47:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
A full blown OnDrawCell  like CB would be a delegate however, you can<br />
change color, font with Roles without resorting to custom drawing.</p>
]]></description><link>https://forum.qt.io/post/606530</link><guid isPermaLink="true">https://forum.qt.io/post/606530</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Mon, 13 Jul 2020 16:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to QTableWidget: Cells updating event on Mon, 13 Jul 2020 16:33:56 GMT]]></title><description><![CDATA[<p dir="auto">If you want to modify the displaying of a cell you can either return e.g. a <a href="https://doc.qt.io/qt-5/qabstractitemmodel.html#data" target="_blank" rel="noopener noreferrer nofollow ugc">different color for e.g. BackgroundRole</a> or similar or use a custom <a href="https://doc.qt.io/qt-5/qstyleditemdelegate.html" target="_blank" rel="noopener noreferrer nofollow ugc">QStyledItemDelegate</a> to draw the content by yourself.</p>
]]></description><link>https://forum.qt.io/post/606528</link><guid isPermaLink="true">https://forum.qt.io/post/606528</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Mon, 13 Jul 2020 16:33:56 GMT</pubDate></item></channel></rss>