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

Baz Walter bazwal at gmail.com
Wed Apr 17 09:22:24 BST 2024


On 17/04/2024 08:15, Gottfried Müller wrote:
> Thank you for the answers. I checked both solutions (omit the type
> argument and the type='qint64'). The note of "not safe" was the argument
> against the qint64 solution.
> 
> Gottfried

Hello Gottfried

Just to be clear: my answer was that it's not safe to *omit* the argument. On some platforms, omitting the type argument 
will return a string instead of an int. So it's better to use quint64/qint64 if you can.




More information about the PyQt mailing list