-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!
Description
What is the bug or the crash?
When tabbing to a custom formatted (dd/MM/yyyy) Date/Time field in the attribute form for a new feature, QGIS highlights the first 4 characters ie dd/M, rather than the first two characters. As a result, it is not possible to enter anything while these characters are highlighted.
It is possible (on Windows) to Tab (to MM), and then Shift-Tab (back to dd), to get it to select the days.
However, this is a workaround. It seems like when tabbing from the previous field, it is assumed that the Date/Time field uses the default format (yyyy-MM-dd), where highlighting the first 4 characters would be correct.
The tabbing is correct within the field.
Steps to reproduce the issue
- Create a new Temporary Scratch Layer, and add a Text field (eg name) and Date/Time field (eg date)
- Go to Layer Properties, and set the Widget Type for the date layer to Date/Time, the display format to Custom (dd/MM/yyyy), and disable the Calendar Popup
- Add a new feature
- Enter 'test' for the name, and then Tab to the date field
- It is not possible to enter anything as 4 characters are highlighted
Versions
| QGIS version | 3.40.15-Bratislava |
| QGIS code revision | f68f1bf573 |
| Libraries | |
| Qt version | 5.15.13 |
| Python version | 3.12.12 |
| GDAL version | 3.12.1 — Chicoutimi |
| PROJ version | 9.7.1 |
| EPSG Registry database version | v12.029 (2025-10-03) |
| GEOS version | 3.14.1-CAPI-1.20.5 |
| SQLite version | 3.50.4 |
| PDAL version | 2.9.0 |
| PostgreSQL client version | unknown |
| SpatiaLite version | 5.1.0 |
| QWT version | 6.3.0 |
| QScintilla2 version | 2.14.1 |
| OS version | Windows 11 Version 2009 |
| Active Python plugins | |
| db_manager | 0.1.20 |
| grassprovider | 2.12.99 |
| MetaSearch | 0.3.6 |
| processing | 2.12.99 |
Supported QGIS version
- I'm running a supported QGIS version according to the roadmap.
New profile
- I tried with a new QGIS profile
Additional context
Screenshot of creating a new feature as per the above steps attached below:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugEither a bug report, or a bug fix. Let's hope for the latter!Either a bug report, or a bug fix. Let's hope for the latter!
