[Interest] Tired of QML

Alexander Dyagilev alervdvcw at gmail.com
Sat Apr 15 15:13:02 CEST 2017


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 :)
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170415/2ac80d2a/attachment.html>


More information about the Interest mailing list