Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Vertical header in TableView and ResizeMode for headers

$
0
0
Jens, I tried your code for creating vertical header delegate and I understood that I don’t understand how styleData works. It’s not a Loader property but it’s likely not an attached property either, because it doesn’t look like: <AttachingType>.<propertyName> as written in docs [qt-project.org]. What is it? Where can I read about it? I also didn’t understand what is the purpose of line: property var rootData: styleData Is rootData some special property (I didn’t find docs describing that property)? I inserted this code (modified line marked with “//”): Loader {  property var rootData: styleData  sourceComponent: table.headerDelegate  property QtObject styleData: QtObject {   property string value: styleData.value // this line is modified   property bool pressed   property bool containsMouse   property int column  } } and got: But when I wrapped Item around Loader: Item { Loader { ... } } situation became better: But that’s still bad.

Viewing all articles
Browse latest Browse all 4972

Trending Articles