IconButton QML Type

Provides a clickable icon More...

Import Statement: import quey.ui 0.1
Inherits:

Item

Inherited By:

MenuButton

Properties

Signals

Detailed Description

import QtQuick 2.4
import quey.ui 0.1

ApplicationView {
    IconButton {
        anchors.centerIn: parent
        iconName: "wand"
        onClicked: {
            console.log("Let's go!")
        }
    }
}

Property Documentation

hoverEnabled : alias

If set to false the button ignores mouse hovering which results in hovered being false.


[read-only] hovered : bool

This property is true when the button contains the mouse.


iconColor : color

The color of the icon.


iconName : alias

Sets the icon name. This will pick the icon with the given name from the installed icon set.


iconSize : alias

Sets the icon size.


Signal Documentation

clicked()

Emitted when the icon button was clicked.