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

QSpinBox ignores wrapping setting at INT32_MAX and INT32_MIN

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.12.0
    • 5.11.1
    • PySide
    • None

    Description

      The PySide2 QSpinBox widget does not honor the wrapping setting at INT32_MAX and INT32_MIN so it is not possible to step up from 0x7fffffff or down from 0x8000000 as it was in PySide.

      import sys
      from PySide2.QtWidgets import *
      
      def main():
        app = QApplication(sys.argv)
        window = QSpinBox()
        window.setMaximum(0x7fffffff)
        window.setValue(0x7fffffff)
        window.setMinimum(-0x80000000)
        window.setWrapping(True)
        window.show()
        sys.exit(app.exec_())
      
      if __name__ == '__main__':
        main()
      
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: