Skip to content

Fix Clamped range widget value#7406

Draft
mohsenD98 wants to merge 3 commits intomasterfrom
range-widget-fix
Draft

Fix Clamped range widget value#7406
mohsenD98 wants to merge 3 commits intomasterfrom
range-widget-fix

Conversation

@mohsenD98
Copy link
Copy Markdown
Collaborator

@mohsenD98 mohsenD98 commented May 7, 2026

🚀 Description

Follow-up to #7127 — which introduced clamping of range widget values to configured min/max limits. This PR addresses one more edge cases in the TextField variant of the Range editor widget around when and how values are committed and clamped.

🐛 Problem

When using a defined range (e.g., 50–250), it is not possible to enter certain valid values due to premature validation. For example as soon as the user types the first digit (2), the input is immediately corrected to the minimum value (50).

@mohsenD98 mohsenD98 self-assigned this May 7, 2026
@qfield-fairy
Copy link
Copy Markdown
Collaborator

qfield-fairy commented May 7, 2026

🍎 MacOS DMG universal builds

Download a MacOS DMG universal build of this PR for testing.
(Built from commit 613cfe4)

📱 Android builds

Download an Android arm64 build of this PR for testing.
(Built from commit 613cfe4)

Other Android architectures

🪟 Windows builds

Download a Windows build of this PR for testing and for arm64.

(Built from commit 613cfe4)

🐧 Linux AppImage builds

Download a Linux AppImage build of this PR for testing.
(Built from commit 613cfe4)

@mohsenD98 mohsenD98 force-pushed the range-widget-fix branch from 93bfadd to c067e11 Compare May 7, 2026 20:06
Comment thread src/qml/editorwidgets/Range.qml Outdated
Comment thread src/qml/editorwidgets/Range.qml Outdated
Comment thread src/qml/editorwidgets/Range.qml Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants