Forum Discussion
ChristopheC
15 years agoContributor
Hi,
I have a new question always on QTreeWidget.
when I use the following code :
Sub Main
MyTree = Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Item(0).Text(0)
MsgBox MyTree
End Sub
MsgBox return "Element1" -> OK
In my QTreeWidget, wItems.Item(0) can contain text, ok, I use "MyTree = [QTreeWidget].wItems.Item(0).Text(0)".
wItems.Item(0) can contain an icon, how can get this item ?
If it is not possible to retrieve the icon, is it possible to recover if wItems.Item(0) is empty or not ?
Thank you to take time to reply us and please give me an exemple in VBScript.
Best Regards
I have a new question always on QTreeWidget.
when I use the following code :
Sub Main
MyTree = Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Item(0).Text(0)
MsgBox MyTree
End Sub
MsgBox return "Element1" -> OK
In my QTreeWidget, wItems.Item(0) can contain text, ok, I use "MyTree = [QTreeWidget].wItems.Item(0).Text(0)".
wItems.Item(0) can contain an icon, how can get this item ?
If it is not possible to retrieve the icon, is it possible to recover if wItems.Item(0) is empty or not ?
Thank you to take time to reply us and please give me an exemple in VBScript.
Best Regards