<?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[Trigering a repaint event]]></title><description><![CDATA[<p dir="auto">Hi all,I am trying to get a window to be repainted after some set up and I find it weird that it is not being repainted after calling update() .I have even called repaint() on the window and nothing happened.Has anybody run into such a problem before ?If yes I would really appreciate it if you shared.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.qt.io/topic/26490/trigering-a-repaint-event</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 08:25:14 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/26490.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Apr 2013 14:48:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trigering a repaint event on Tue, 23 Apr 2013 01:50:29 GMT]]></title><description><![CDATA[<p dir="auto">I checked that the updates are enabled and they are.I have tried every idea I could come up with and no luck so far.Here is what I want to achieve.I have a bunch of control buttons on my main window and I want to use them to control the position of the palettes(LEFT/RIGHT).</p>
<p dir="auto">Here is my slot that responds to a button push:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/void">@<bdi>void</bdi></a> UBBoardPaletteManager::leftRightButtonClicked()<br />
{</p>
<p dir="auto">UBApplication::boardController-&gt;paletteManager()-&gt;leftPalette()-&gt;setOrientation(eUBDockOrientation_Right);<br />
UBApplication::boardController-&gt;paletteManager()-&gt;leftPalette()-&gt;repaint();<br />
UBApplication::mainWindow-&gt;repaint();<br />
UBApplication::app()-&gt;processEvents(QEventLoop::AllEvents);<br />
}@</p>
<p dir="auto">and in the constructor of the palette I made sure that updates are enabled by the following code:</p>
<p dir="auto">@UBLeftPalette::UBLeftPalette(QWidget *parent, const char *name):<br />
UBDockPalette(eUBDockPaletteType_LEFT, parent)<br />
{<br />
............</p>
<pre><code>    setUpdatesEnabled(true);
</code></pre>
<p dir="auto">}@</p>
<p dir="auto">With this setup it is my belief that after the button is pushed ,the palette(widget) should automatically be redrawn and positioned where i want it to be.</p>
<p dir="auto">Is something wrong with my idea flow?Thanks for your time.</p>
]]></description><link>https://forum.qt.io/post/176853</link><guid isPermaLink="true">https://forum.qt.io/post/176853</guid><dc:creator><![CDATA[musimbate]]></dc:creator><pubDate>Tue, 23 Apr 2013 01:50:29 GMT</pubDate></item><item><title><![CDATA[Reply to Trigering a repaint event on Mon, 22 Apr 2013 17:02:49 GMT]]></title><description><![CDATA[<p dir="auto">Are updates enabled (QWidget::setUpdatesEnabled)? Or are we talking about QtQuick? Then you need to set the item dirty (QQuickItem::ItemHasContents) before it will update. See "the doc":<a href="http://doc-snapshot.qt-project.org/5.0/qtquick/qquickitem.html#updatePaintNode" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc-snapshot.qt-project.org/5.0/qtquick/qquickitem.html#updatePaintNode</a>.</p>
]]></description><link>https://forum.qt.io/post/176846</link><guid isPermaLink="true">https://forum.qt.io/post/176846</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 22 Apr 2013 17:02:49 GMT</pubDate></item></channel></rss>