Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2039

QApplication.setOverrideCursor has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.3.0
    • PySide
    • None
    • macOS
    • 287dc13652 (pyside/pyside-setup/dev) e2ed19b9c2 (pyside/pyside-setup/6.3) e2ed19b9c2 (pyside/tqtc-pyside-setup/6.3) e2ed19b9c2 (pyside/pyside-setup/wip/6.3_pypy) e2ed19b9c2 (pyside/tqtc-pyside-setup/wip/6.3_pypy)

    Description

      The QApplication.setOverrideCursor seems to have no effect at all in PySide6. I tested it in C++ also, there it works. I used the sample application from another related PySide6 issue:

      #!/usr/bin/env python
      import sys 
      from PySide6.QtGui import *
      from PySide6.QtCore import *
      from PySide6.QtWidgets import * 
      
      app = QApplication ( sys.argv ) 
      cursor = QCursor(Qt.WaitCursor)
      shape = Qt.WaitCursor 
      print(cursor) 
      print(shape) 
      # QApplication.setOverrideCursor( cursor )
      QApplication.setOverrideCursor( shape ) 
      window = QLabel("WAIT") 
      window.resize(300, 400) 
      window.show() 
      sys.exit ( app.exec() )

       
      I tried both versions of the QApplication.setOverrideCursor, none yields any result.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: PYSIDE-2039
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              zxn Zoltan Szocs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes