QSettings value type=int: big positive numbers converted in negative numbers

Gottfried Müller gottfried.mueller at gmx.de
Tue Apr 16 11:23:21 BST 2024


Hello,

reading an integer value with a huge value (for example: 2845924041) is
converted in a negative value (-1449043255) using

settings.value("bigInteger", type=int)

As a workaround I read this value with type=str and convert it in the
Python code to an integer value. Is there a way getting the right
positive value by settings.value?

Gottfried




More information about the PyQt mailing list