|
2017-08-27
, 15:30
|
Posts: 578 |
Thanked: 994 times |
Joined on Dec 2012
|
#3
|
import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page SilicaFlickable { anchors.fill: parent contentHeight: column.height PullDownMenu { } Column { id: column width: page.width PageHeader { id: pageHeader title: qsTr("UI Template") } SilicaListView { id: listView width: parent.width height: page.height - pageHeader.height clip: true model: 40 delegate: BackgroundItem { Label { text: index font.pixelSize: Theme.fontSizeMedium anchors.verticalCenter: parent.verticalCenter } } } } } }
The Following User Says Thank You to elros34 For This Useful Post: | ||
|
2017-08-27
, 15:32
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#4
|
|
2017-08-27
, 15:47
|
|
Posts: 433 |
Thanked: 727 times |
Joined on Oct 2012
@ Costa Blanca, Espaņa
|
#5
|
I use something like that in my apps:
Code:import QtQuick 2.0 import Sailfish.Silica 1.0 Page { id: page SilicaFlickable { anchors.fill: parent contentHeight: column.height PullDownMenu { } Column { id: column width: page.width PageHeader { id: pageHeader title: qsTr("UI Template") } SilicaListView { id: listView width: parent.width height: page.height - pageHeader.height clip: true model: 40 delegate: BackgroundItem { Label { text: index font.pixelSize: Theme.fontSizeMedium anchors.verticalCenter: parent.verticalCenter } } } } } }
I have a Page with a scrollable list. I would like the header to stay in view as the list is scrolled, this is because my header has a clock on it, I would like the clock to stay in view. (yes, I know I can peek from the page, but I don't want that)
Currently, the list fills the Page, but the list really needs to start at the bottom of the header. I have tried for many hours (lol) to achieve this, but I'm not having any joy at all
Here's what I currently have so far, the header (including clock) scrolls up with the populated list;
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..