Details
Description
QDoubleSpinBox.setValue (and setMaximum, ...) do not accept integer values exceeding 2**63 - 1. floats of the same value are accepted.
from PySide6.QtWidgets import QApplication, QDoubleSpinBox app = QApplication() box = QDoubleSpinBox() value = 2**63 - 1 # Works fine box.setValue(value) box.setMaximum(value) value = 2**63 # Workaround: box.setValue(float(value)) box.setMaximum(float(value)) # OverflowError: int too big to convert box.setValue(value) box.setMaximum(value)
This is very similar to https://bugreports.qt.io/browse/PYSIDE-2417.
Attachments
Issue Links
- relates to
-
PYSIDE-2417 QDoubleSpinBox.setValue does not accept integers >= 2**31
- Closed