Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. WaitCusor not working in qt6
Forum Updated to NodeBB v4.3 + New Features

WaitCusor not working in qt6

Scheduled Pinned Locked Moved Solved Qt 6
4 Posts 2 Posters 753 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bebewinla
    wrote on last edited by
    #1

    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.

    SGaistS 1 Reply Last reply
    0
    • B bebewinla

      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.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Try with:

      QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
      

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Try with:

        QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.CursorShape.WaitCursor))
        
        B Offline
        B Offline
        bebewinla
        wrote on last edited by
        #3

        @SGaist ,
        This works. Thanks. Where could I find any qt6 tutorial or docs when porting qt5 to qt6 regarding attributes.

        SGaistS 1 Reply Last reply
        0
        • B bebewinla has marked this topic as solved on
        • B bebewinla

          @SGaist ,
          This works. Thanks. Where could I find any qt6 tutorial or docs when porting qt5 to qt6 regarding attributes.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          There's the porting guide to help you get started.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved