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…

pythonguis.com에서 읽기

공개 피드에서 가져온 요약입니다. 전문은 게시한 사이트에서 볼 수 있습니다.