Qt Quick Components

ListHeading

Symbian: The ListHeading element provides a heading for a list or a section in a list. More...

  • List of all members, including inherited members
  • Properties

    Detailed Description

    ListHeading can be used as the header at the top of a list or as a header for sections within the list. A ListHeading has similar padding to ListItem which can be used to anchor items inside the ListHeading.

    Using a ListHeading as a list header

     ListHeading {
         id: listHeader
    
         ListItemText {
             id: txtHeading
             anchors.fill: listHeader.padding
             role: "Heading"
             text: "Test list"
         }
     }

    Using a ListHeading as a section header

     ListHeading {
         id: sectionHeader
    
         ListItemText {
             id: txtHeading
             anchors.fill: sectionHeader.padding
             role: "Heading"
             text: "Items with " + section + " in them:"
         }
     }

    See also ListItem and ListItemText.

    Property Documentation

    padding : Item


    paddingItem : Item

    The invisible padding rectangle for the ListHeading that items can be anchored to.


    style : style