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

shiboken issue converting Python3 int (which might be long integer)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • None
    • PySide, Shiboken
    • None
    • PySide2-5.11.0a1-5.12.0-cp34-cp34m-linux_x86_64.whl
    • 8ed37563888f7956da99636c62f18459729d5966

    Description

      Shiboken seems to be confused when Python3 int are actually long.

      item = QGraphicsRectItem()
      item.setData(QGraphicsItem.UserType, 1)

      works correctly, but

      item = QGraphicsRectItem()
      item.setData(QGraphicsItem.UserType, 1<<32)

      raises an exception OverFlowError with the following message in the console:

      RuntimeWarning: libshiboken: Overflow: Value 4294967296 exceeds limits of type  [signed] "i" (4bytes)

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            lriesterer Laurent Riesterer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes