Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.7, 6.x
-
None
-
1d3e219e56 (qt/qtdeclarative/dev) 756add49a6 (qt/qtdeclarative/6.2) 756add49a6 (qt/tqtc-qtdeclarative/6.2) 1d3e219e56 (qt/tqtc-qtdeclarative/dev) 756add49a6 (qt/qtdeclarative/6.2.4) 8cf3891b76 (qt/qtdeclarative/6.3) 8cf3891b76 (qt/tqtc-qtdeclarative/6.3)
Description
IBeamCursor should be used when a pointing device can be used to select text or position a text cursor, just like on the web. Instead, TextArea and TextField use ArrowCursor when readOnly is true, even when selectByMouse is also true.
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { width: 400 height: 400 visible: true Flow { anchors.fill: parent Repeater { model: [ { readOnly: false, selectByMouse: false }, { readOnly: false, selectByMouse: true }, { readOnly: true, selectByMouse: false }, { readOnly: true, selectByMouse: true }, ] delegate: TextArea { text: "readOnly: " + readOnly + " selectByMouse: " + selectByMouse readOnly: modelData.readOnly selectByMouse: modelData.selectByMouse } } } }
Attachments
Issue Links
- relates to
-
QTBUG-50482 QtQuick TextInput and TextEdit should use an IBeam mouse cursor by default
- Closed
-
QTBUG-14769 Cursor shapes on desktop systems (windows, etc)
- Closed
-
QTBUG-104089 TextEdit has wrong cursor shape on hover
- Closed