Forum Discussion
AlexeyKolosov
Staff
15 years agoHi Christophe,
Here's how you can check whether there's an icon:
Sub Test
Set qtw = <QTreeWidgetObject>
Call qtw.ClickItem("Elément 1|Sous-Elément 1.2", "Colonne 2")
If (qtw.currentItem().icon(1).isNull()) Then
Log.Message "An icon is not set"
Else
Log.Message "An icon is set"
End If
End Sub
However, to use the script above, you need to:
1. Compile your application with debug information.
2. Enable the 'Enable Debug Agent' and 'Read debug information for statically linked libraries' options. See Project Properties - Debug Agent Options.