suma_alex |
2017-04-14 09:45 |
QML tableview rowDelegate行委托中 键盘如何移动焦点
如题:我测试了下,发现委托中貌似无法active focus 。。。 rowDelegate:
- rowDelegate: Item
{ id :rowDelItem height: tableView.height/6 width: tableView.width Rectangle { id : bkSelected width: tableView.width*7/10 height: tableView.height*3/24 anchors.verticalCenter: parent.verticalCenter color : styleData.pressed ?"#80444458":"#807070a2" radius: 10 gradient: Gradient { GradientStop { position: 0.00; color: styleData.pressed ?"#80444458":"#807070a2"; } GradientStop { position: 0.50; color: "#80000000"; } GradientStop { position: 1.00; color: styleData.pressed ?"#80444458":"#807070a2"; } } visible: styleData.hasActiveFocus | styleData.selected } onActiveFocusChanged: { console.log("row 委托 焦点 active changed"); } }
|
|