Volver a Python news

Python GUIs: How to Change the Decimal Separator in QDoubleValidator — Use QLocale to control the decimal point format in PyQt6 QLineEdit validation

I'm using QDoubleValidator with a QLineEdit in PyQt6, but the validator allows a comma as the decimal separator instead of a point (dot). How can I force the decimal separator to be a point? When you use QDoubleValidator in PyQt6, the character it treats as the decimal separator — a comma (,) or a…

Léelo en pythonguis.com

Un resumen de un feed público. El texto completo está en el sitio que lo publicó.