Skip to content

UniDeskSizeSelector Type

Size selector control, used to precisely set component width and height in the visual editor.

ProjectDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskSizeSelector.qml
InheritsQtQuick Item
QML Importimport UniDesk.Controls 1.0

Editor Only

This control is mainly used internally by the Uniquenium visual editor.

Custom Properties

PropertyTypeDescription
editingComponentItemComponent currently being edited

Sub-controls

ControlDescription
widthSpinBox (UniDeskSpinBox)Width (0-3000)
heightSpinBox (UniDeskSpinBox)Height (0-3000)

Behavior

  • Auto-calls editingComponent.saveComToFile() after size changes
  • Listens to widthChanged, heightChanged, endDrag, componentCompleted signals for auto-refresh

Methods

function refreshSize()

Refresh width and height display.

Example

qml
import UniDesk.Controls 1.0

UniDeskSizeSelector {
    editingComponent: someComponent
}

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