ScrollView with TextArea material style exceeds height
Unsolved
General and Desktop
-
I am on Qt 6.5. The
ScrollView
's verticalScrollBar
seems to exceed the height of theTextArea
.Here is the image:
And here is the code
import QtQuick import QtQuick.Controls import QtQuick.Controls.Material ApplicationWindow { width: 400 height: 300 Material.theme: Material.Dark Material.accent: Material.Purple Column { id: column width: parent.width height: parent.height Row { id: row width: parent.width height: 100 leftPadding: 10 anchors { leftMargin: 10 rightMargin: 10 } Image { id: appLogo width: 50 height: 50 anchors.verticalCenter: parent.verticalCenter source: "../../assets/images/icon.png" smooth: false mipmap: true fillMode: Image.PreserveAspectFit } Text { id: appName color: "#ffffff" text: qsTr("VideoTimeline") font { pixelSize: 40 family: poiretOneFont.name } horizontalAlignment: Text.AlignHCenter anchors.verticalCenter: parent.verticalCenter topPadding: row.spacing } } ScrollView { id: view width: parent.width height: parent.height - y clip: true TextArea { id: textArea anchors.fill: parent text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Leo integer malesuada nunc vel risus commodo viverra. At quis risus sed vulputate odio. Rhoncus dolor purus non enim praesent elementum facilisis. Est pellentesque elit ullamcorper dignissim. Velit dignissim sodales ut eu sem integer vitae. Sit amet consectetur adipiscing elit duis tristique sollicitudin nibh. Arcu non odio euismod lacinia at quis risus sed vulputate. Molestie a iaculis at erat pellentesque adipiscing commodo elit. Quis risus sed vulputate odio ut enim blandit volutpat.<br><br>Non curabitur gravida arcu ac tortor dignissim convallis aenean et. Interdum velit euismod in pellentesque massa placerat duis ultricies lacus. A pellentesque sit amet porttitor eget dolor morbi non. Tortor condimentum lacinia quis vel eros. In nibh mauris cursus mattis. In hac habitasse platea dictumst quisque. Mollis nunc sed id semper risus in. Pellentesque elit ullamcorper dignissim cras tincidunt lobortis feugiat. Elementum nibh tellus molestie nunc non blandit massa enim nec. Morbi enim nunc faucibus a pellentesque sit amet. Lacus luctus accumsan tortor posuere ac. Auctor neque vitae tempus quam pellentesque nec. Elit eget gravida cum sociis natoque penatibus et magnis. Et malesuada fames ac turpis egestas maecenas pharetra." wrapMode: Text.WordWrap hoverEnabled: false activeFocusOnPress: false textFormat: Text.RichText selectByMouse: false readOnly: true } } } }
Any idea why is this happening? Is this by design?