Re: [Interest] Tired of QML

2017-04-18 Thread Jean-Michaël Celerier
On Tue, Apr 18, 2017 at 7:08 PM, Gunnar Roth wrote: > Is it really the case that QQuickItem::parent is a different function > than QObject::parent and if > "QQuickItem::parent is about placement in the scene." what > is QQuickItem::parentItem then? > No. In Qml : Item { id: obj1 } Item { id:

Re: [Interest] Tired of QML

2017-04-18 Thread Jason H
  > Sent: Saturday, April 15, 2017 at 8:26 AM > From: "Vlad Stelmahovsky" > if you tired of QML, go take some html+css+js as a antipattern and come back > relaxed to QML   I'm a firm believer that no one in their right mind would have invented web development from scratch as it has become by

Re: [Interest] Tired of QML

2017-04-18 Thread Gunnar Roth
April 2017 um 14:16 Uhr Von: "Shawn Rutledge" An: "interest@qt-project.org" Betreff: Re: [Interest] Tired of QML > On 15 Apr 2017, at 15:59, Alexander Dyagilev wrote: > On 4/15/2017 4:37 PM, Oleg Evseev wrote: >> >> parent.header seems to be not acc

Re: [Interest] Tired of QML

2017-04-18 Thread Jérôme Godbout
I agree with Shawn as the parent is not always trivial and I strongly suggest you use an inspector like GammaRay https://www.kdab.com/development-resources/qt-tools/gammaray/ to check the properties (parent, childrens...). Make yourself some simple example and check them out. The Component, Loader

Re: [Interest] Tired of QML

2017-04-18 Thread Shawn Rutledge
> On 15 Apr 2017, at 15:59, Alexander Dyagilev wrote: > On 4/15/2017 4:37 PM, Oleg Evseev wrote: >> >> 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 th

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
On 4/15/2017 4:37 PM, Oleg Evseev wrote: I do not understand why this code does not work: ListView{ anchors.fill:parent model:downloadsModel header:DownloadListHeader{} delegate:DownloadListItem { preInfoColumnWidth:parent.header.preInfoColumnWidth }

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
Thanks for the link :) On 4/15/2017 4:24 PM, Vlad Stelmahovsky wrote: try to read this book first: https://qmlbook.github.io/ On Sat, Apr 15, 2017 at 3:09 PM, Alexander Dyagilev mailto:alervd...@gmail.com>> wrote: I like QML and its architecture. I've tired of some of its non obvio

Re: [Interest] Tired of QML

2017-04-15 Thread Oleg Evseev
> > I do not understand why this code does not work: > > ListView { > > anchors.fill: parent > > model: downloadsModel > > header: DownloadListHeader{} > > delegate: DownloadListItem > > { > > preInfoColumnWidth: parent.header.preInfoColumnWidth >

Re: [Interest] Tired of QML

2017-04-15 Thread Vlad Stelmahovsky
try to read this book first: https://qmlbook.github.io/ On Sat, Apr 15, 2017 at 3:09 PM, Alexander Dyagilev wrote: > I like QML and its architecture. > > I've tired of some of its non obvious things that are easy for someone > knowning QML and absolutely terrible for newbies like me. > > On 4/15

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
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 understa

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
I like QML and its architecture. I've tired of some of its non obvious things that are easy for someone knowning QML and absolutely terrible for newbies like me. On 4/15/2017 3:26 PM, Vlad Stelmahovsky wrote: if you tired of QML, go take some html+css+js as a antipattern and come back relaxe

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
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 no

Re: [Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
Many thanks for you answer (it helped)! But... Sorry for being not specific, I meant another thing... What I mean is the *preInfoColumnWidth* properties of both controls. I create and use them in both header and delegate. What I would like is to be able to set my delegates' properties equal to

Re: [Interest] Tired of QML

2017-04-15 Thread Oleg Evseev
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 :) ___

Re: [Interest] Tired of QML

2017-04-15 Thread Oleg Evseev
Hi Alexander, First thing you need to understand that the apparent "order" like this Item {} Item {} or that Item { Item {} } doesn't mean that items will be arrange as column (or maybe row). This order is relevant only to Z coordinate, that means what item will be on top of the other. Pl

Re: [Interest] Tired of QML

2017-04-15 Thread Vlad Stelmahovsky
if you tired of QML, go take some html+css+js as a antipattern and come back relaxed to QML On Sat, Apr 15, 2017 at 1:40 PM, Alexander Dyagilev wrote: > Hello, > > It seems to be a very non intuitive for me... :( > > I'm trying to create my own header for ListView as TableView does not > exist i

[Interest] Tired of QML

2017-04-15 Thread Alexander Dyagilev
Hello, It seems to be a very non intuitive for me... :( I'm trying to create my own header for ListView as TableView does not exist in Quick Controls 2. ListView { header: DownloadListHeader{} delegate: DownloadListItem { preInfoColumnWidth: header.preInfo