Forum Discussion
ChristopheC
16 years agoContributor
Hi David,
When I use the following code :
Sub Main
MyTree = Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Count
MsgBox MyTree
End Sub
MsgBox return "2" -> OK
When I use the following code :
Sub Main
MyTree =
Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Item(0).Text
MsgBox MyTree
End Sub
An error appears -> An exception occured in the "Test1" unit at line 2:
Erreur d'exécution Microsoft VBScript
Nombre d'arguments ou affectation de propriété incorrects: 'wItems.Item(...).Text'
Exactly
what do I need to verify the
elements and sub elements of a QTreeWidget.
My QTreeWidget is similary to a data table.
I would
check the entire contents of my QTreeWidget and uncheck the items
one by one because I can get thousands.
Example of Tree Structure : my QtreeWidget
emerges depending on the result of a extract data
Column Name : "Nom/Prénom", "Valide", "Type"
Nom/Prénom | Valide | Type
BADGE 01 V N
BADGE 02 V N
BADGE 03 NV V
BADGE 04 V V
...
I could possibly send you a small
application developed in QT with a PDF showing you what I want
Best
regards,
Christophe
When I use the following code :
Sub Main
MyTree = Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Count
MsgBox MyTree
End Sub
MsgBox return "2" -> OK
When I use the following code :
Sub Main
MyTree =
Aliases.testComplete5.MainWindow.centralWidget.treeWidget.wItems.Item(0).Text
MsgBox MyTree
End Sub
An error appears -> An exception occured in the "Test1" unit at line 2:
Erreur d'exécution Microsoft VBScript
Nombre d'arguments ou affectation de propriété incorrects: 'wItems.Item(...).Text'
Exactly
what do I need to verify the
elements and sub elements of a QTreeWidget.
My QTreeWidget is similary to a data table.
I would
check the entire contents of my QTreeWidget and uncheck the items
one by one because I can get thousands.
Example of Tree Structure : my QtreeWidget
emerges depending on the result of a extract data
Column Name : "Nom/Prénom", "Valide", "Type"
Nom/Prénom | Valide | Type
BADGE 01 V N
BADGE 02 V N
BADGE 03 NV V
BADGE 04 V V
...
I could possibly send you a small
application developed in QT with a PDF showing you what I want
Best
regards,
Christophe