Bug 438650

Summary: Text can escape from SpinBox when width is constrained
Product: [Frameworks and Libraries] frameworks-qqc2-desktop-style Reporter: Nate Graham <nate>
Component: generalAssignee: Marco Martin <notmart>
Status: CONFIRMED ---    
Severity: normal CC: ahiemstra, kde, noahadvs
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2021-06-14 19:24:38 UTC
Consider this test case:

import QtQuick 2.5
import QtQuick.Controls 2.5 as QQC2

Item {
    implicitWidth: 200
    implicitHeight: 200

    QQC2.SpinBox {
        anchors.centerIn: parent
        width: 50
        editable: true
        from: 0
        to: 9999999
    }
}


Enter "9999999" in the box and the text will overflow. It should be elided or clipped, at least, to mirror the behavior of a text field.