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

pyside6: no type available for 64bit (un)signed integer properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P5: Not important
    • None
    • 6.8
    • PySide, Shiboken
    • None

    Description

      It is not possible to declare a property that holds/transports a 64bit integer, either signed or unsigned.

      C++ int is mapped to Python int, but Python int automatically converts to a long representation when the threshold between an int and a long is reached.
      This may results in overflow in certain cases (long value in python being cast into a c++ int)

      But this also has the consequence that is not possible to handle through properties or designer numbers greater than (int) 2^31 - 1 and (uint) 2^32 - 1.
      If such a number is emitted through signals, it will fail.

      I haved attached an example/test case.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            arturo_hoffstadt Arturo Hoffstadt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes