<?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[Returning specific section of a QHeaderView]]></title><description><![CDATA[<p dir="auto">Hi. I have a QTableView with a QHeaderView split into sections. There is a button I want to place specifically in one of these sections. Is there a way to specify this? I have been unable to find anything on the <a href="https://doc.qt.io/qt-6/qtableview.html#horizontalHeader" target="_blank" rel="noopener noreferrer nofollow ugc">QTableView</a> or <a href="https://doc.qt.io/qt-5/qheaderview.html" target="_blank" rel="noopener noreferrer nofollow ugc">QHeaderView</a> documentation.</p>
<p dir="auto">This is the code I am using this for.</p>
<pre><code>QHBoxLayout *layout = new QHBoxLayout(ui-&gt;tableWidget_Configs-&gt;horizontalHeader());   //I'm not sure how to specify which sections in the horizontal Header to place the button in.
layout-&gt;addWidget(ui-&gt;pushButton_SelectAll);
</code></pre>
<p dir="auto">Please let me know if more information is required.</p>
]]></description><link>https://forum.qt.io/topic/140608/returning-specific-section-of-a-qheaderview</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 10:06:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140608.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Nov 2022 09:46:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Returning specific section of a QHeaderView on Wed, 09 Nov 2022 10:14:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dummie1138">@<bdi>Dummie1138</bdi></a><br />
I think you should Google for <code>widget on QHeaderView</code>.  There are several answers/examples to look through, e.g. <a href="https://stackoverflow.com/questions/27000484/add-custom-widgets-as-qtablewidget-horizontalheader" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/27000484/add-custom-widgets-as-qtablewidget-horizontalheader</a> and <a href="https://stackoverflow.com/questions/56823549/how-to-add-qlabel-object-to-qheaderview" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/56823549/how-to-add-qlabel-object-to-qheaderview</a></p>
]]></description><link>https://forum.qt.io/post/735505</link><guid isPermaLink="true">https://forum.qt.io/post/735505</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Wed, 09 Nov 2022 10:14:36 GMT</pubDate></item></channel></rss>