0
点赞
收藏
分享

微信扫一扫

QML的输入框隐藏光标


对于这件事的解决方案简单方法是光标设置透明,也可以用Delegate

TextInput{
id:m_textInput
maximumLength: 1
anchors.fill: parent
cursorDelegate: cursor
focus: true
}
Component{
id:cursor
Rectangle{
width: 40
height: 40
}
}

 

举报

相关推荐

0 条评论