Flickable Area not adding both Listview and Items.



  • Hi All,

    I am using QtQuick 1.1 .

    I am using Flickable following way

      Flickable {
            id: flickarea
            anchors.top: applicationHeader.bottom
            boundsBehavior: Flickable.StopAtBounds
            width: parent.width
            height: 1000//parent.height-applicationHeader.height
            contentWidth: parent.width
            contentHeight: 1000
            flickableDirection: Flickable.VerticalFlick
            clip: true
    
    
            ListView {
                id:listview
                interactive: true
                width: parent.width
                height: 50 * model.count
    
                model: rootModel.settings.part1
    
                delegate: MenuItemDelegate { title: model.title; pageUrl: model.pageUrl; color: '#FFF' }
            }
    
            Item{
                id:itemairplanemode
                width: parent.width
                height: 45
                anchors.top: listview.bottom
                MenuItemSwitchDelegate {
                    id:airplanemode
                    title: 'Airplane Mode'
                    on : true //rootModel.settings.airplaneMode
                    //                switchcon.onToggleStateOn: rootModel.settings.airplaneMode = switchControl.checked
                }
            }
    
            Item {
                id:itemstealthmode
                width: parent.width
                height: 45
                anchors.top: itemairplanemode.bottom
                MenuItemSwitchDelegate {
                    id:stealthmode
                    title: 'Stealth Mode'
               
    
                }
            }
        }
    

    It is only displaying Listview and not items below them .
    I have put the anchors properly.
    What would be the problem ?

    Thanks in Advance.
    Basha.


  • Moderators

    Hi @basha92,
    Perhaps due to height: 50 * model.count the calculated height is greater enough to file the view and affecting the other Items ?



  • Hi,

    I Solved it.
    height was o.k.
    interactive: false

    and made height sufficient for Flickable Item.

    Thanks.
    Basha.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.