[SailfishDevel] SilicaFlickable, Column, SilicaListView

Andrey Kozhevnikov coderusinbox at gmail.com
Sat May 23 17:03:43 UTC 2015


The best way to get help is freenode #sailfishos irc channel imho :)

i can't properly understand what ui you want to get. basically you 
should NOT put listview inside any other flickable. if you need 
something under listview you should not set it hight, and anchor 
something between listview bottom and page bottom.

23.05.2015 21:57, Віталій Коренєв пишет:
> I'm just starting to learn qml, and there are many questions.
> I have
> XmlListModel {
> id: listModel
> query: "/ colors / color"
> XmlRole {name: "id"; query: "id / string ()"}
> XmlRole {name: "title"; query: "title / string ()"}
> ...
> }
>
> SilicaFlickable {
> anchors.fill: parent
>
> Column
> {
> width: parent.width; height: parent.height
> id: mainContainer
>
> SilicaListView
> {
> width: parent.width; height: parent.height
> id: list
> model: listModel
> delegate: BackgroundItem {
> width: parent.width; height: 120
> Image {
> source: imageUrl
> anchors.fill: parent
> }
> Label {text: title}
> }
> VerticalScrollDecorator {}
> }
> }
> }
>
> How can I add other elements (buttons, labels ...) after all elements 
> of SilicaListView, if its height: parent.height. If you remove line 
> height: parent.height for SilicaListView, it is not displayed. There 
> have been attempts to add other elements before 
> VerticalScrollDecorator {} and other places (experimenting with 
> anchors), but the added elements were in the upper left corner of the 
> screen or on the last 10 points of the screen (under SilicaListView).
>
> Sorry for my English.
> PS. This is the only way to get or give help when working with qml + 
> Silica? No forum for developers Sailfish?
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150523/ade9251b/attachment.html>


More information about the Devel mailing list