<div dir="ltr">Any idea on how I can track down what signal / event / system interrupt / whatever is causing this problem??<br><br>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><br>David</div><br><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">phil@riverbankcomputing.com</a>> wrote:<br></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>
<br>
Phil<br>
<br>
On 14/05/2019 20:39, David Morris wrote:<br>
> Updates (but no fix):<br>
> <br>
> I updated my mac to MacOS 10.14.5 and the problem persists.<br>
> I tried some examples from PyQt5 and all exhibit the same behavior.<br>
> <br>
> However, Designer does NOT exhibit this behavior, and I understand it <br>
> is<br>
> written in Qt. Is this a PyQt5 bug on MacOS?<br>
> <br>
> FYI, I installed PyQt5 using: pip install pyqt5<br>
> <br>
> Can anyone on MacOS Mojave replicate this with my example code?<br>
> <br>
> David<br>
> <br>
> On Tue, May 14, 2019 at 4:22 PM David Morris <<a href="mailto:othalan@othalan.net" target="_blank">othalan@othalan.net</a>> <br>
> wrote:<br>
> <br>
>> I am developing a small media player application using PyQt5 on MacOS<br>
>> Mojave. Any time the mouse is hovering over a widget where the mouse<br>
>> pointer changes shape, the mouse pointer begins to blink (flash?), <br>
>> changing<br>
>> shape between the normal mouse pointer and the alternate mouse <br>
>> pointer.<br>
>> <br>
>> For example, if I create a QLineEdit widget the mouse pointer changes <br>
>> to<br>
>> an I-Beam as the alternate pointer when hovering over the widget.<br>
>> Ordinarily this the mouse pointer simply changes shape so long as I am<br>
>> hovering over the widget. However, in the below test application the <br>
>> mouse<br>
>> pointer continually changes shape between the I-Beam pointer and the <br>
>> normal<br>
>> arrow mouse pointer, changing back and forth at the same rate as the <br>
>> input<br>
>> position cursor in the widget.<br>
>> <br>
>> Example code showing this behavior on my system:<br>
>> <br>
>> import sysfrom PyQt5 import QtWidgetsfrom PyQt5 <br>
>> import QtCore<br>
>> <br>
>> class MainWindow(QtWidgets.QMainWindow):<br>
>> sig = QtCore.pyqtSignal()<br>
>> def __init__(self):<br>
>> super().__init__()<br>
>> self.resize(400,400)<br>
>> self.cw = QtWidgets.QWidget(self)<br>
>> self.setCentralWidget(self.cw)<br>
>> self.l = QtWidgets.QVBoxLayout(self.cw)<br>
>> self.le = QtWidgets.QLineEdit(self.cw)<br>
>> self.l.addWidget(self.le)<br>
>> self.label = QtWidgets.QLabel()<br>
>> self.l.addWidget(self.label)<br>
>> self.show()<br>
>> <br>
>> app=QtWidgets.QApplication([sys.argv])<br>
>> w=MainWindow()<br>
>> app.setActiveWindow(w)<br>
>> exit_code = app.exec_()<br>
>> <br>
>> sys.exit(exit_code)<br>
>> <br>
>> In the above code I can fix the problem by disabling the line edit <br>
>> cursor<br>
>> flash using app.setCursorFlashTime(0). However, this does NOT fix the<br>
>> problem in my application. In my application, signals in other widgets <br>
>> will<br>
>> also cause the same mouse pointer shape changing (blinking) behavior.<br>
>> <br>
>> Version details:<br>
>> *MacOS* Mojave 10.14.1<br>
>> *PyQt5* 5.12.2<br>
>> *Python* 3.7.3<br>
>> <br>
>> I have developed QtApplications in the past and never observed this<br>
>> behavior and am at a loss as to why this is happening.<br>
>> <br>
>> It occurred to me this could be a MacOS bug, but I am unable to update <br>
>> my<br>
>> system at the moment (I am on a very poor internet connection and the<br>
>> update is huge).<br>
>> <br>
>> Does anyone have a solution for this highly irritating behavior?<br>
>> <br>
>> EDIT: Change "mouse cursor" to "mouse pointer" for clarity.<br>
>> <br>
> <br>
> _______________________________________________<br>
> PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
> <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
</blockquote></div>