Skip to content

UniDeskFrame Type

Grouping container/card control based on QtQuick Frame. Provides a unified rounded border and themed background, commonly used to group related controls.

ItemDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskFrame.qml
InheritsQtQuick Templates Frame
QML Importimport UniDesk.Controls 1.0

Custom Properties

PropertyTypeDescription
colorcolorBackground color (alias to internal d.color)
borderborderBorder (alias to internal d.border)
radiusrealCorner radius (alias to internal d.radius)

Style

  • 3px corner radius
  • 1px border, auto-adapts to light/dark themes
  • Background auto-adapts to light/dark themes (white in light / black in dark)
  • No default padding

Example

qml
import UniDesk.Controls 1.0

UniDeskFrame {
    width: 300
    height: 150
    radius: 8

    Column {
        anchors.fill: parent
        spacing: 10
        Text { text: "Group Title"; font.pixelSize: 16 }
        UniDeskButton { text: "Button" }
    }
}

Released under the CC BY-SA 4.0 open documentation license.