01-15-2013 12:36 PM - edited 01-15-2013 12:55 PM
When I load a list I want the size preferredHeight: to reflect the list items that are loaded from a XML file. I can't see any options that exist to make this simple like peferredHeight: ListItemData.
Any suggestions so I dont need to make sizing complicated?
01-15-2013 12:56 PM
01-15-2013 01:03 PM
Okay let me look into that suggestion. Here is my file: https://github.com/TheMindCompany/MindDriveSystem/
01-15-2013 01:12 PM
01-15-2013 01:21 PM - edited 01-15-2013 01:27 PM
Not working. I have a customized list going, feel like I tried all the related calls for size. I also tried sizing each item in the list but still get the same problem I am trying to avoid.
The problem I am running from is if you look at my code I have the preference page made of a collapsible list tree. Within each (in pref.qml) ExpandibleHeader: when visible it make the following ExpandibleHeader: not show because the list size is seemingly infinite. I can pass a size to make it fit but I want it to fit more dynamically to the items that exist in it.
Update @peter9477: When I try to adjust the list items size I get the same problem I mentioned above above.
01-15-2013 01:43 PM - edited 01-15-2013 01:44 PM
I am going to go back and I am going to try and have the individual sections size it again. Maybe I did something the first time I tried. I feel preferredHeight: ListItem.sectionSize should work.
01-15-2013 04:15 PM
That didn't work again either. I know what I have to do, and it is probly the better road to create one master xml file but that means I cant have everything broken down like I wanted.