<?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[Problem with QTableWidget]]></title><description><![CDATA[<p dir="auto">In an RVIZ plugin i use a QTableWidget to display a max of 100 waypoints. Everytime a waypoint is changed, added oder removed i trigger an updated function which fills the QTableWidget with the current waypoints. The problem which accours is that the QTableWidget is only repainted every second change.</p>
<p dir="auto">@<br />
void WaypointPanel::updateTable() {<br />
//fill the table with the new content<br />
WaypointList-&gt;setRowCount(waypointArray-&gt;getArraySize());<br />
for(int i=0; i&lt;WaypointList-&gt;rowCount();i++){<br />
//insert content into new row<br />
WaypointList-&gt;setItem(i,0,new QTableWidgetItem(tmpLocale-&gt;toString(waypointArray-&gt;getWaypoint(i).x ) ,0));<br />
WaypointList-&gt;setItem(i,1,new QTableWidgetItem(tmpLocale-&gt;toString(waypointArray-&gt;getWaypoint(i).y ) ,0));<br />
WaypointList-&gt;setItem(i,2,new QTableWidgetItem(tmpLocale-&gt;toString(waypointArray-&gt;getWaypoint(i).z ) ,0));<br />
WaypointList-&gt;setItem(i,3,new QTableWidgetItem(tmpLocale-&gt;toString(waypointArray-&gt;getWaypoint(i).radius ) , 0));</p>
<p dir="auto">}<br />
}<br />
@</p>
<p dir="auto">If i add a loop which prints out the content of the QTableWidget i can see that the content is there but it isn't displayed.</p>
]]></description><link>https://forum.qt.io/topic/47501/problem-with-qtablewidget</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 00:31:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47501.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Oct 2014 12:09:17 GMT</pubDate><ttl>60</ttl></channel></rss>