So, I've decided to stick with global properties and use them to set properties for both header and delegate. Works fine.

But I still would like to please get an answer to this.


On 4/15/2017 4:03 PM, Alexander Dyagilev wrote:

No, I meant non-intuitive behavior of QML... :(

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. :(


On 4/15/2017 3:44 PM, Oleg Evseev wrote:
In fact basic documentation link "Important Concepts In Qt Quick - Positioning" http://doc.qt.io/qt-5/qtquick-positioning-topic.html is the third one in most basic overview of Qt Quick http://doc.qt.io/qt-5/qtquick-index.html

It is a pity that you were tired earlier on first two basic links :)


_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to