>
> I do not understand why this code does not work:
>
> ListView {
>
> anchors.fill: parent
>
> model: downloadsModel
>
> header: DownloadListHeader{}
>
> delegate: DownloadListItem
>
> {
>
> preInfoColumnWidth: parent.header.preInfoColumnWidth
>
> }
> }
> parent.header seems to be not accessible as preInfoColumnWidth initializes
> with 0. :(
>
>
Firstly, header property is not an item of header, but a component.
headerItem property holds the header item created from the header component.
Also parent.headerItem.preInfoColumnWidth will not work, cause delegate
items will not be *direct *children of Listview.
parent.parent.headerItem.preInfoColumnWidth will work, but better use
idListview.headerItem instead this mess of parents.
So, I've decided to stick with global properties and use them to set
> properties for both header and delegate. Works fine.
>
I think it's better solution.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest