第一个问题 如何让光标不显示
我设置了
cursorVisible: false
不顶事啊
第二个问题
如何改变光标的颜色和大小?
要是用 TextInput的话可以这样做
Item {
  id: test
  width: 200
  height: 50
  TextInput
  {
  anchors.fill:parent
  color:"red"
  focus: false
  cursorDelegate:cursor
  }
  Component
  {
  id:cursor
  Rectangle
  {
  width: 3
  height: 20
  color:"blue"
  }
  }
}
不懂为什么 cursorVisible: false不管用。不过通过cursorDelegate 你可以自己控制光标是否显示 大小 及颜色。