Bug report #19695

Line Edit widgets for integer numbers with thousand separators enabled are hard to edit

Added by Andreas Neumann about 6 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Edit widget
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

Description

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.

qgis-group-thousand-separator.png (52.1 KB) Andreas Neumann, 2018-08-25 05:01 PM


Related issues

Related to QGIS Application - Bug report #20682: QGIS 3.4 ToggleEditing Closed 2018-11-30

Associated revisions

Revision ae907878
Added by Alessandro Pasotti about 6 years ago

Remove group separator when editing numeric values

Fixes #19695 - Line Edit widgets for integer numbers with thousand separators enabled are hard to edit

History

#1 Updated by Alessandro Pasotti about 6 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti about 6 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"

Opinions?

#3 Updated by Andreas Neumann about 6 years ago

This would be definitely better than the current behaviour.

Thanks,
Andreas

#4 Updated by Alessandro Pasotti about 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

#5 Updated by Anonymous about 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

#6 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to fixed/implemented

#7 Updated by Alessandro Pasotti almost 6 years ago

Also available in: Atom PDF