对于这件事的解决方案简单方法是光标设置透明,也可以用Delegate
TextInput{
id:m_textInput
maximumLength: 1
anchors.fill: parent
cursorDelegate: cursor
focus: true
}
Component{
id:cursor
Rectangle{
width: 40
height: 40
}
}
微信扫一扫
对于这件事的解决方案简单方法是光标设置透明,也可以用Delegate
TextInput{
id:m_textInput
maximumLength: 1
anchors.fill: parent
cursorDelegate: cursor
focus: true
}
Component{
id:cursor
Rectangle{
width: 40
height: 40
}
}
相关推荐