Bug 438650 - Text can escape from SpinBox when width is constrained
Summary: Text can escape from SpinBox when width is constrained
Status: CONFIRMED
Alias: None
Product: frameworks-qqc2-desktop-style
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-14 19:24 UTC by Nate Graham
Modified: 2024-10-03 12:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.