<?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[Disabled SplitHCursor!?]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have an odd issue that my SplitHCursor is invisible on my QSplitter(s).<br />
I'm trying to understand the reproducing pattern, but no luck so far.</p>
<p dir="auto">One quick question is what property is responsible for changing the mouse cursor on QSplitter?<br />
Do I need to set stylesheet or something in QSplitter??</p>
<p dir="auto">Thanks in advance for your help.<br />
Sat</p>
]]></description><link>https://forum.qt.io/topic/84986/disabled-splithcursor</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 02:32:15 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/84986.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Nov 2017 08:32:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Wed, 15 Nov 2017 13:07:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Ah, yes, I was missing that... ashamed....<br />
Thank you very much for your help!</p>
<p dir="auto">Regards,<br />
Sat</p>
]]></description><link>https://forum.qt.io/post/426183</link><guid isPermaLink="true">https://forum.qt.io/post/426183</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Wed, 15 Nov 2017 13:07:48 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Wed, 15 Nov 2017 10:56:45 GMT]]></title><description><![CDATA[<p dir="auto">These are for application wide modification otherwise you have <a href="http://doc.qt.io/qt-5/qwidget.html#cursor-prop" target="_blank" rel="noopener noreferrer nofollow ugc">QWidget::setCursor</a>.</p>
]]></description><link>https://forum.qt.io/post/426152</link><guid isPermaLink="true">https://forum.qt.io/post/426152</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 15 Nov 2017 10:56:45 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Wed, 15 Nov 2017 05:47:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> Sorry, again. I just wanted to share what are the options that we can change the mouse cursor shape.<br />
Is this the only option that we have?<br />
QApplication.setOverrideCursor(Qt.WaitCursor)/QApplication.restoreOverrideCursor()</p>
<p dir="auto">Thanks,<br />
Sat</p>
]]></description><link>https://forum.qt.io/post/426099</link><guid isPermaLink="true">https://forum.qt.io/post/426099</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Wed, 15 Nov 2017 05:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Tue, 14 Nov 2017 09:46:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> SOLVED. It was my fault that I was missing QApplication.restoreOverrideCursor() after some modification of cursor shape.</p>
<p dir="auto">Thanks!<br />
Sat</p>
]]></description><link>https://forum.qt.io/post/425920</link><guid isPermaLink="true">https://forum.qt.io/post/425920</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Tue, 14 Nov 2017 09:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Tue, 14 Nov 2017 06:50:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> Found one workaround with the following code, but my widgets are on QMainWindow and another splitter between QDock and CentralWidget is also staying ArrowCursor, which should be either SplitHCursor or SplitVCursor. Therefore, the workaround can't be the final solution.</p>
<pre><code>class MySplitterHandle(QSplitterHandle):
...
...
    def enterEvent(self, e):
        print('enterEvent')
        #super().enterEvent(e)
        QApplication.setOverrideCursor(Qt.SplitHCursor if self.direction == Qt.Horizontal else Qt.SplitVCursor)

    def leaveEvent(self, e):
        print('leaveEvent')
        #super().enterEvent(e)
        QApplication.setOverrideCursor(Qt.ArrowCursor)
</code></pre>
]]></description><link>https://forum.qt.io/post/425879</link><guid isPermaLink="true">https://forum.qt.io/post/425879</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Tue, 14 Nov 2017 06:50:08 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Tue, 14 Nov 2017 05:32:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> Update:<br />
Looks like self.cursor().shape() in MySplitterHandle shows the correct shape but the mouse cursor is not changing..</p>
]]></description><link>https://forum.qt.io/post/425866</link><guid isPermaLink="true">https://forum.qt.io/post/425866</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Tue, 14 Nov 2017 05:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Tue, 14 Nov 2017 05:27:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> I'm still investigating the issue with the following custom QSplitter/QSplitterHandle.<br />
One strange thing is that I can't change the cursor shape in MySplitterHandle.mouseMoveEvent.<br />
MySplitterHandle.mouseMoveEvent is successfully invoked but the cursor shape doesn't change.<br />
Is there any possible situation where setCursor method doesn't work??  What am I missing???</p>
<pre><code>class MySplitter(QSplitter):
    def __init__(self, dir, parent=None):
        super(MySplitter, self).__init__(parent=parent)
        self.setOrientation(dir)
        #self.setHandleWidth(1)
        self.split_handle = None


    def createHandle(self):
        self.split_handle = MySplitterHandle(self.orientation(), self)
        return self.split_handle



class MySplitterHandle(QSplitterHandle):
    def __init__(self, orientation, parent):
        super(MySplitterHandle, self).__init__(orientation, parent)

        self.setCursor(Qt.SplitHCursor if orientation == Qt.Horizontal else Qt.SplitVCursor)
        #self.setCursor(Qt.PointingHandCursor)
        self.setMouseTracking(True)
        self.direction = orientation

    def mouseMoveEvent(self, event):
        print('setting splitter cursor')
        super().mouseMoveEvent(event)
        #self.unsetCursor()
        self.setCursor(Qt.SplitHCursor if self.direction == Qt.Horizontal else Qt.SplitVCursor)
</code></pre>
]]></description><link>https://forum.qt.io/post/425863</link><guid isPermaLink="true">https://forum.qt.io/post/425863</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Tue, 14 Nov 2017 05:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Tue, 14 Nov 2017 03:57:12 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for an update, <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
I'm using pyqt5.9.1 on Windows7.<br />
Still investigating the issue and found in a different app that  SplitHCursor was also invisible occasionally in horizontal header in my QTable/QTreeView on QSplitter.<br />
I wonder if there's workaround to forcefully set the mouse cursor shape..</p>
<p dir="auto">I'll share code snippet once it's ready.</p>
<p dir="auto">Sat</p>
]]></description><link>https://forum.qt.io/post/425844</link><guid isPermaLink="true">https://forum.qt.io/post/425844</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Tue, 14 Nov 2017 03:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Mon, 13 Nov 2017 20:44:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What version of Qt are you using ?<br />
On what platform ?<br />
Can you show the code setting up the QSplitter ?</p>
]]></description><link>https://forum.qt.io/post/425823</link><guid isPermaLink="true">https://forum.qt.io/post/425823</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 13 Nov 2017 20:44:03 GMT</pubDate></item><item><title><![CDATA[Reply to Disabled SplitHCursor!? on Mon, 13 Nov 2017 09:03:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shinsat">@<bdi>ShinSat</bdi></a> QSplitter itself works but no SplitHCursor... Strange..</p>
<p dir="auto">Sat</p>
]]></description><link>https://forum.qt.io/post/425687</link><guid isPermaLink="true">https://forum.qt.io/post/425687</guid><dc:creator><![CDATA[ShinSat]]></dc:creator><pubDate>Mon, 13 Nov 2017 09:03:43 GMT</pubDate></item></channel></rss>