In ‘AppListView’ are empty places where Loader should load Component with ‘SimpleRow’
I have a code application written in QT/QML and V-PLAY on the github here:
I want to use AppListView to display different elements (like Button or SwitchApp) in ‘Ustawienia’ (Settings) page dependent on elements in array:
property var typeOfElementsInSettings: [‘switch’,’switch’,’button’,’switch’]
I use ‘delegete: Loader’ to do It, I inspired in this thread.
I load component from other file, one will have Button inside, other AppSwitcher. Loader inserts SimpleRow to AppListView, I know It because variable myIndex should increment when SimpleRow is added and It was incremented but I can’t see anything. I mean that I see empty space in place where should be displayed SimpleRow.
Important file ‘SimpleRowSwitch.qml’ and ‘Main.qml’ in 81 line