Hi everyone:
i would like create a listview (qml), where each element is not the same. Plus, the way to display each element (delegate) is not the same either.
is there anyone who have encounted this kind of problem?
thanks
Hi everyone:
i would like create a listview (qml), where each element is not the same. Plus, the way to display each element (delegate) is not the same either.
is there anyone who have encounted this kind of problem?
thanks
Hi,
Even i have the same problem , checking for a solution . Hope someone would help us find a solution.
chetu1984 (18th February 2011)
Roles are always the same. Their values might not be. If roles are different then you have two separate models. You can declare the delegate in such a way that it takes values into consideration.
I really don't see your point. A model has to be consistent. Keeping "apples" and "cars" in a single model doesn't make any sense if they don't have anything in common. If they do (e.g. they are "objects") then they have the same roles (i.e. "object name", "object type", etc.). Then you can say if "object type" is "car", display it like this, otherwise display it like that.
Hi wysota,
You said.if "object type" is "car", display it like this, otherwise display it like that.
How exactly can you embed this "if" condition into the delegate?
Thanks in advance,
Wladek
One second is long, everything longer than two seconds is definitely too long.
Bookmarks