• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaComponents

Signals | Properties | List of all members
Button Class Reference

Inherits Item.

Signals

void clicked ()
 

Properties

bool checkable
 
bool checked
 
font font
 
string iconSource
 
real minimumHeight
 
real minimumWidth
 
bool pressed
 
string text
 

Detailed Description

A button with optional label and icon which uses the plasma theme.

Since
0.1

This button component can also be used as a checkable button by using the checkable and checked properties for that. Plasma theme is the theme which changes via the systemsetting-workspace appearance -desktop theme.

Definition at line 32 of file Button.qml.

Member Function Documentation

void Button::clicked ( )
signal

This signal is emitted when the button is clicked.

Property Documentation

bool Button::checkable

This property holds if the button is acting like a checkable button or not.

The default value is false.

Definition at line 51 of file Button.qml.

bool Button::checked

This property holds whether this button is checked or not.

The button must be in the checkable state to enable users to check or uncheck it.

The default value is false.

See also
checkable

Definition at line 44 of file Button.qml.

font Button::font

This property holds the font used by the button label.

See also Qt documentation for font type.

Definition at line 80 of file Button.qml.

string Button::iconSource

This property holds the source url for the Button's icon.

It can be any image from any protocol supported by the Image element, or a freedesktop-compatible icon name

The default value is an empty url, which displays no icon.

Definition at line 72 of file Button.qml.

real Button::minimumHeight

Smallest height this button can be to show all the contents.

Definition at line 89 of file Button.qml.

real Button::minimumWidth

Smallest width this button can be to show all the contents.

Definition at line 85 of file Button.qml.

bool Button::pressed

This property holds if the button is pressed or not.

Read-only.

Definition at line 57 of file Button.qml.

string Button::text

This property holds the text label for the button.

Definition at line 62 of file Button.qml.


The documentation for this class was generated from the following file:
  • Button.qml
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaComponents

Skip menu "PlasmaComponents"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal