Bug report #19695
Line Edit widgets for integer numbers with thousand separators enabled are hard to edit
|Affected QGIS version:||3.3(master)||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||27520|
When one has an attribute field with a line edit widget assigned and thousand separators enabled in the global Options (see attached screenshots), then it is really hard to edit longer numbers.
The thousand separator is treated like a regular character and the user manually has to make sure that the separator is positioned at the correct places.
This makes editing of numeric values using the line edit widget quite hard/complicated.
#2 Updated by Alessandro Pasotti about 2 years ago
- Status changed from Open to In Progress
I think that the best solution here is to remove the group separator when the editor has focus and it ready to accept user input.
So, the display value would be "1.000.000,99"
When the user click on the cell to edit the value, it becomes "1000000,99"
When the field looses the focus, the value is formatted again and becomes "1.000.000,99"