Representation QML Type

Item to be used as root item for representations (full and compact) of plasmoids. More...

Import Statement: import org.kde.plasma.extras
Inherits:

Page

Properties

Detailed Description

It's a QtQuickControls2 Page, and like that one, has an header, a contentItem and a Footer It may go over the plasmoid edges (both on desktop and popups) with the properties applyHorizontalPadding and applyVerticalPadding. When the contentItem is a ScrollView or a Scrollarea, the plasmoid margins will be automatically removed.

This code will create a full representation with a listview that will automatically fill the whole area without margins from the plasmoid popup borders

 Plasmoid.Representation: PlasmaExtras.Representation {
     header: PlasmaExtras.BasicPlasmoidHeading {}
     contentItem: PlasmaComponent.ScrollView {
         ListView {
             // ...
         }
     }
 }

Property Documentation

collapseMarginsHint : bool

If true, the representation will remove any borders its container may have put and will be collapsed above its borders