This is post #3 so far, and I’ll probably be posting many more questions (but don’t worry, I DO search the forums first (the best I can) to make sure someone else hasn’t already asked).
First some background info, I am writing my GUI in Qml (hence why I’m posting this in the ‘Qt Quick’ thread), and I’m doing everything in a text editor, I’m not using any kind of WYSIWYG or other IDE.
Anyways, what I need help with right now, is I’m trying to find a good way to present data in my app, what I want is like a GridView, but I would like to be able to have the items grouped by alphabet (and maybe have other group options for the user, such as date, etc.), and have “subheaders”, so everything that starts with ‘A’ would be in group ‘A’ and have a header that says ‘A’, and right after that would be group ‘B’ with a header that says ‘B’, etc., etc. or if the user chose to group by Date, then the first group might be “1998”, with a header that says “1998”, then group 2 might be “1999” with a header that says “1999”, etc., etc.
Since the Grid and GridView components only seem to have a Header and Footer all I can think of is to have each group be it’s own grid, is there any other way of doing this??? Would it be best to just make a new component that inherits Grid or GridView? And if so how would I do that?
If my question is confusing in any way please let me know and I’ll try to reword it the best I can, and thanks in advance for any help.
↧