Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. DeprecationWarning: an integer is required
Forum Updated to NodeBB v4.3 + New Features

DeprecationWarning: an integer is required

Scheduled Pinned Locked Moved Solved Qt for Python
4 Posts 3 Posters 2.7k Views 2 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.
  • N Offline
    N Offline
    notsofast
    wrote on last edited by notsofast
    #1

    When I try to combine two Qt.DropAction values, I get the following warning:

    DeprecationWarning: an integer is required (got type PySide2.QtCore.Qt.DropAction).
        Implicit conversion to integers using __int__ is deprecated, and may be removed in
        a future version of Python.
    
      return Qt.CopyAction | Qt.MoveAction
    

    What is the proper way to combine the two values?

    Python 3.8.1
    PySide2 5.14.1
    MacOS Catalina

    1 Reply Last reply
    0
    • N Offline
      N Offline
      notsofast
      wrote on last edited by
      #3

      Thanks! I found this: https://bugreports.qt.io/browse/PYSIDE-1226

      It says that it is already fixed and will be coming out in the next release.

      BTW, your bug report system link needs fixing: s/bugreport/bugreports/

      SGaistS 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #2

        Hi,

        That's likely something introduced by Python 3.8. You should check the bug report system to see if there's already something related.

        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
        • N Offline
          N Offline
          notsofast
          wrote on last edited by
          #3

          Thanks! I found this: https://bugreports.qt.io/browse/PYSIDE-1226

          It says that it is already fixed and will be coming out in the next release.

          BTW, your bug report system link needs fixing: s/bugreport/bugreports/

          SGaistS 1 Reply Last reply
          1
          • N notsofast

            Thanks! I found this: https://bugreports.qt.io/browse/PYSIDE-1226

            It says that it is already fixed and will be coming out in the next release.

            BTW, your bug report system link needs fixing: s/bugreport/bugreports/

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

            @notsofast indeed, I forgot that letter !

            Thanks for sharing your findings !

            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