<?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[How to fix table column width is resetting&#x2F;overlapping when the table is scrolled]]></title><description><![CDATA[<p dir="auto">When I resize my table column width and scroll the table, the column that was out of view now overlaps weirdly and the width seems to reset somehow. See these 3 images below.</p>
<p dir="auto">Original (not resized):<br />
<img src="https://ddgobkiprc33d.cloudfront.net/4c34d1d3-c90e-42cb-85b0-25f003d7e888.png" alt="57b26b47-2995-4e0b-b0b2-c64d5464593c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Resized the "description" column (any column will do):<br />
<img src="https://ddgobkiprc33d.cloudfront.net/17ea8a7c-fed9-4170-8c37-6bc296229fa5.png" alt="20c915b2-73dd-4cb4-9f0c-699c722620fb-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">After scrolled back and forth (horizontally) a few times:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/7b18c4d4-8b32-466d-8097-c6e22728353f.png" alt="eee81ef2-8c91-4090-af15-a916e86acb96-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is part of my QML code that contains the table:</p>
<p dir="auto"><a href="https://pastebin.com/s8QvqEyQ" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/s8QvqEyQ</a> (on pastebin since it keeps getting flagged by akismet)</p>
<p dir="auto">My table model is implemented in Python but I don't think it's the cause since there's nothing related to the UI there.</p>
<p dir="auto">I already tried using <code>onWidthChanged: &lt;tableViewId&gt;.forceLayout()</code> on both my table view and horizontal header view after searching from Google but it doesn't seem to fix it.</p>
<p dir="auto">I'm using PySide 6.10.2 on Fedora KDE Linux.</p>
]]></description><link>https://forum.qt.io/topic/164467/how-to-fix-table-column-width-is-resetting-overlapping-when-the-table-is-scrolled</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 15:08:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164467.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Mar 2026 06:34:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to fix table column width is resetting&#x2F;overlapping when the table is scrolled on Mon, 23 Mar 2026 09:45:38 GMT]]></title><description><![CDATA[<p dir="auto">I haven't used <code>TableView</code> in Qt 6 but I wonder whether your use of <code>RowLayout</code> in your delegate is necessary. Not saying it is causing the issue but it might be worth simplifying your implementation by removing it and debugging from there.</p>
]]></description><link>https://forum.qt.io/post/837256</link><guid isPermaLink="true">https://forum.qt.io/post/837256</guid><dc:creator><![CDATA[Bob64]]></dc:creator><pubDate>Mon, 23 Mar 2026 09:45:38 GMT</pubDate></item></channel></rss>