Python news sayfasına dön

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 üzerinde okuyun

Herkese açık bir feed'den özet. Tam metin, onu yayınlayan sitede.