<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">I can confirm that when I run your example program I too see the mouse pointer alternate between an arrow and an I-beam, so it's not just your setup. I'm running on macOS 10.14.4 with:</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(155, 201, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    Python: 3.7.3</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(155, 201, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    Sip: 4.19.17</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(155, 201, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    Qt: 5.12.3</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(155, 201, 255);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    PyQt: 5.12.2</span></div>
<div><br class="">
</div>
<div>Regards,</div>
<div>Colin McPhail</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 15 May 2019, at 07:41, David Morris <<a href="mailto:othalan@othalan.net" class="">othalan@othalan.net</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Any idea on how I can track down what signal / event / system interrupt / whatever is causing this problem??<br class="">
<br class="">
I tried creating a new user on my computer, fresh python install (3.6.2 for something different), fresh pyqt5 install ... and same problem.<br class="">
<br class="">
David</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 1:40 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
No, works fine for me.<br class="">
<br class="">
Phil<br class="">
<br class="">
On 14/05/2019 20:39, David Morris wrote:<br class="">
> Updates (but no fix):<br class="">
> <br class="">
> I updated my mac to MacOS 10.14.5 and the problem persists.<br class="">
> I tried some examples from PyQt5 and all exhibit the same behavior.<br class="">
> <br class="">
> However, Designer does NOT exhibit this behavior, and I understand it <br class="">
> is<br class="">
> written in Qt.  Is this a PyQt5 bug on MacOS?<br class="">
> <br class="">
> FYI, I installed PyQt5 using:  pip install pyqt5<br class="">
> <br class="">
> Can anyone on MacOS Mojave replicate this with my example code?<br class="">
> <br class="">
> David<br class="">
> <br class="">
> On Tue, May 14, 2019 at 4:22 PM David Morris <<a href="mailto:othalan@othalan.net" target="_blank" class="">othalan@othalan.net</a>>
<br class="">
> wrote:<br class="">
> <br class="">
>> I am developing a small media player application using PyQt5 on MacOS<br class="">
>> Mojave. Any time the mouse is hovering over a widget where the mouse<br class="">
>> pointer changes shape, the mouse pointer begins to blink (flash?), <br class="">
>> changing<br class="">
>> shape between the normal mouse pointer and the alternate mouse <br class="">
>> pointer.<br class="">
>> <br class="">
>> For example, if I create a QLineEdit widget the mouse pointer changes <br class="">
>> to<br class="">
>> an I-Beam as the alternate pointer when hovering over the widget.<br class="">
>> Ordinarily this the mouse pointer simply changes shape so long as I am<br class="">
>> hovering over the widget. However, in the below test application the <br class="">
>> mouse<br class="">
>> pointer continually changes shape between the I-Beam pointer and the <br class="">
>> normal<br class="">
>> arrow mouse pointer, changing back and forth at the same rate as the <br class="">
>> input<br class="">
>> position cursor in the widget.<br class="">
>> <br class="">
>> Example code showing this behavior on my system:<br class="">
>> <br class="">
>> import sysfrom PyQt5               import QtWidgetsfrom PyQt5          <br class="">
>>      import QtCore<br class="">
>> <br class="">
>> class MainWindow(QtWidgets.QMainWindow):<br class="">
>>     sig = QtCore.pyqtSignal()<br class="">
>>     def __init__(self):<br class="">
>>         super().__init__()<br class="">
>>         self.resize(400,400)<br class="">
>>         self.cw = QtWidgets.QWidget(self)<br class="">
>>         self.setCentralWidget(self.cw)<br class="">
>>         self.l = QtWidgets.QVBoxLayout(self.cw)<br class="">
>>         self.le = QtWidgets.QLineEdit(self.cw)<br class="">
>>         self.l.addWidget(self.le)<br class="">
>>         self.label = QtWidgets.QLabel()<br class="">
>>         self.l.addWidget(self.label)<br class="">
>>         self.show()<br class="">
>> <br class="">
>> app=QtWidgets.QApplication([sys.argv])<br class="">
>> w=MainWindow()<br class="">
>> app.setActiveWindow(w)<br class="">
>> exit_code = app.exec_()<br class="">
>> <br class="">
>> sys.exit(exit_code)<br class="">
>> <br class="">
>> In the above code I can fix the problem by disabling the line edit <br class="">
>> cursor<br class="">
>> flash using app.setCursorFlashTime(0). However, this does NOT fix the<br class="">
>> problem in my application. In my application, signals in other widgets <br class="">
>> will<br class="">
>> also cause the same mouse pointer shape changing (blinking) behavior.<br class="">
>> <br class="">
>> Version details:<br class="">
>> *MacOS* Mojave 10.14.1<br class="">
>> *PyQt5* 5.12.2<br class="">
>> *Python* 3.7.3<br class="">
>> <br class="">
>> I have developed QtApplications in the past and never observed this<br class="">
>> behavior and am at a loss as to why this is happening.<br class="">
>> <br class="">
>> It occurred to me this could be a MacOS bug, but I am unable to update <br class="">
>> my<br class="">
>> system at the moment (I am on a very poor internet connection and the<br class="">
>> update is huge).<br class="">
>> <br class="">
>> Does anyone have a solution for this highly irritating behavior?<br class="">
>> <br class="">
>> EDIT: Change "mouse cursor" to "mouse pointer" for clarity.<br class="">
>> <br class="">
> <br class="">
> _______________________________________________<br class="">
> PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank" class="">
PyQt@riverbankcomputing.com</a><br class="">
> <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank" class="">
https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br class="">
<br class="">
</blockquote>
</div>
_______________________________________________<br class="">
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" class="">PyQt@riverbankcomputing.com</a><br class="">
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>