<?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[Autoscroll QTreeview only vertically]]></title><description><![CDATA[<p dir="auto">I want to autoscroll while making Drag and drop operations, I know that it can be set by: setAutoScroll(true)</p>
<p dir="auto">but it activates autoscrolls in vertical and horizontal direction. Is it a way to activate only the vertical autoscrolling?</p>
<p dir="auto">Thank you,<br />
Jorge</p>
]]></description><link>https://forum.qt.io/topic/50681/autoscroll-qtreeview-only-vertically</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 05:11:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/50681.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Jan 2015 10:52:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Autoscroll QTreeview only vertically on Thu, 29 Jan 2015 11:25:51 GMT]]></title><description><![CDATA[<p dir="auto">no there is no such property to limit the directions.</p>
<p dir="auto">But you could do the following:</p>
<ul>
<li>disable Qt autoscroll feature</li>
<li>install an eventfilter on the viewport</li>
<li>on dragmove check if the pos is in a top/bottom margin (defined by you)</li>
<li>if yes start a timer which periodically in-/decreases the value of the vertical scrollbar (if visible)</li>
<li>stop the timer on drop drag-leave events</li>
</ul>
]]></description><link>https://forum.qt.io/post/259706</link><guid isPermaLink="true">https://forum.qt.io/post/259706</guid><dc:creator><![CDATA[raven-worx]]></dc:creator><pubDate>Thu, 29 Jan 2015 11:25:51 GMT</pubDate></item></channel></rss>