Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unittest in c++ für folgende qml code Abschnitt
-
onVisibleChanged: { if (visible) { if (tabButtonGroupId.buttons.length > startTabIndex) { tabButtonGroupId.buttons[startTabIndex].checked = true } } else { if (tabButtonListId.currentItem !== null) { tabButtonListId.currentItem.focus = false } tabButtonListId.currentIndex = -1 } }
das tabButtonGroupId kommt von folgende ButtonGroup:
ButtonGroup { id: tabButtonGroupId }
den tabButtonlistId kommt von einen ListView
Ich versuche gerade einen Unit test in c++ dafür zu schreiben aber mir ist unklar wie komme ich tabButtonGroupId .
Danke in voraus