Qt QML ListView first 3 elements are different then repeated elemnts
-
Hello Guys,
Tried to make Qt ListView with 3 different elements in beginning then repeated elements, what is the issue with QML below?
ListView { width: 750 height: 1334 Banner{} Bio{} EventsNumber{} model: 9 delegate: EventCard{} }
-
That approach seems wrong, all the element should come from the model. If you need 3 initial elements that somehow dont fit in your model/delegate, consider using them outside the ListView
-
@johngod Thanks for your response, using them out site ListView will not make them move with the list,I have read Qt QML ListView Documentation and i got the answer by adding the 3 different elements in header.