开发者

TreeWidget Parent Child Check

I want to check whether a particular row in tree widget have parent and child. When i give single click on a row it have to check for parent and chil开发者_如何学Cd. Can some one give some idea


  • Open Qt Assistant
  • Look for QTreeWidget
  • Go to Signals section and see which signal you really need - I assume itemClicked() or itemActivated() in you case
  • Examine what info you get from the chosen signal - a QTreeWidgetItem may be?
  • Go to QThreeWIdgetItem in Qt Assistant
  • Look some functions that can help you - may be childCount() and parent() ?

Hope this helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜