WaitCusor not working in qt6
-
I have python code works with qt5
Qt.QApplication.setOverrideCursor(Qt.Qt.WaitCusor)
I tried to port this to use qt6
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.WaitCursor)
Then got Error :
AttributeError:type object "Qt" has no attribute "WaitCursor".What should I use.
Thanks. -
I have python code works with qt5
Qt.QApplication.setOverrideCursor(Qt.Qt.WaitCusor)
I tried to port this to use qt6
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.WaitCursor)
Then got Error :
AttributeError:type object "Qt" has no attribute "WaitCursor".What should I use.
Thanks.Hi and welcome to devnet,
Try with:
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
-
Hi and welcome to devnet,
Try with:
QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
-
-
@SGaist ,
This works. Thanks. Where could I find any qt6 tutorial or docs when porting qt5 to qt6 regarding attributes.There's the porting guide to help you get started.