Voltar para 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…

Leia em pythonguis.com

Um resumo de um feed público. O texto completo está no site que o publicou.