<?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[Change the background of the row]]></title><description><![CDATA[<p dir="auto">Dear all,<br />
How can I change the background of the selected row in the table so that I can reset it?</p>
<p dir="auto">Using, for example:</p>
<pre><code>table.item(currentRow, 0).setBackground(QtGui.QColor(182, 252, 189))
table.item(currentRow, 1).setBackground(QtGui.QColor(182, 252, 189))
</code></pre>
<p dir="auto">the basic background color is overwritten irreversibly, and I cannot undo this process.</p>
]]></description><link>https://forum.qt.io/topic/153347/change-the-background-of-the-row</link><generator>RSS for Node</generator><lastBuildDate>Wed, 24 Jun 2026 01:39:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/153347.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Dec 2023 06:33:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change the background of the row on Fri, 29 Dec 2023 08:24:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Store the original color before changing it so you can reuse it when you want to reset the color to default.</p>
]]></description><link>https://forum.qt.io/post/784548</link><guid isPermaLink="true">https://forum.qt.io/post/784548</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 29 Dec 2023 08:24:41 GMT</pubDate></item></channel></rss>