Custom Qml control CheckBox

Info Thread
By -
0

 

A checkbox displays an option button that can be toggled (checked) or off (unchecked).

  • Import method: file import
  • Compatibility: QtQuick1.xwithQtQuick2.x
  • Inheritance: Item

Attributes

  • background: Item
  • checked: bool
  • contentItem: Item
  • down: bool
  • indicator: Item
  • pressed: bool
  • text: string

describe

A checkbox displays an option button that can be toggled (checked) or off (unchecked). Checkboxes are typically used to select one or more options from a set of options.

CheckBox {      checked: true     text: "Default" }

example



properties document

  • background:Item This property holds the background item of the control.
  • checked:bool This property holds whether the control is selected.
  • contentItem:Item This attribute holds custom content elements.
  • down:bool This property holds whether the button is visually down. For more information, please see pressed.
  • indicator:Item This property holds the indicator item.
  • pressed:bool This property holds whether the button was physically pressed. Buttons can be pressed via touch or key events. For more information, please check down.
  • text:string This property holds the text description of the button. For more information, please refer to contentItem.

source code

 

Tags:

Post a Comment

0Comments

Post a Comment (0)