QskPushButton

Inherits from QskAbstractButton

Inherited by QskDialogButton

Public Slots

  Name
void setText(const QString & text)
void setGraphicSource(const QUrl & url)
void setGraphicSource(const QString & source)
void setGraphic(const QskGraphic & graphic)
void setGraphicSourceSize(const QSizeF & size)

Public Signals

  Name
void checkableChanged(bool )
void shapeChanged()
void textChanged()
void textOptionsChanged()
void flatChanged()
void graphicChanged()
void graphicSourceChanged()
void graphicSourceSizeChanged()

Public Functions

  Name
  QskPushButton(QQuickItem * parent =nullptr)
  QskPushButton(const QString & text, QQuickItem * parent =nullptr)
  ~QskPushButton() override
void setCheckable(bool on)
bool isCheckable() const override
void setShape(const QskBoxShapeMetrics & shape)
QskBoxShapeMetrics shape() const
void resetShape()
QString text() const
void setTextOptions(const QskTextOptions & options)
QskTextOptions textOptions() const
QUrl graphicSource() const
QSizeF graphicSourceSize() const
QskGraphic graphic() const
bool hasGraphic() const
void resetGraphicSourceSize()
void setFlat(bool on)
bool isFlat() const
QFont font() const
QRectF layoutRectForSize(const QSizeF & size) const override

Protected Functions

  Name
void changeEvent(QEvent * event) override
void updateResources() override
virtual QskGraphic loadGraphic(const QUrl & url) const

Public Properties

  Name
QString text
QFont font
QskTextOptions textOptions
QUrl graphicSource
QskGraphic graphic
QSizeF graphicSourceSize
bool checkable
bool flat
QskBoxShapeMetrics shape

Public Attributes

  Name
const QskAspect::Subcontrol Panel
const QskAspect::Subcontrol Text
const QskAspect::Subcontrol Graphic

Public Slots Documentation

slot setText

void setText(
    const QString & text
)

slot setGraphicSource

void setGraphicSource(
    const QUrl & url
)

slot setGraphicSource

void setGraphicSource(
    const QString & source
)

slot setGraphic

void setGraphic(
    const QskGraphic & graphic
)

slot setGraphicSourceSize

void setGraphicSourceSize(
    const QSizeF & size
)

Public Signals Documentation

signal checkableChanged

void checkableChanged(
    bool 
)

signal shapeChanged

void shapeChanged()

signal textChanged

void textChanged()

signal textOptionsChanged

void textOptionsChanged()

signal flatChanged

void flatChanged()

signal graphicChanged

void graphicChanged()

signal graphicSourceChanged

void graphicSourceChanged()

signal graphicSourceSizeChanged

void graphicSourceSizeChanged()

Public Functions Documentation

function QskPushButton

QskPushButton(
    QQuickItem * parent =nullptr
)

function QskPushButton

QskPushButton(
    const QString & text,
    QQuickItem * parent =nullptr
)

function ~QskPushButton

~QskPushButton() override

function setCheckable

void setCheckable(
    bool on
)

function isCheckable

bool isCheckable() const override

function setShape

void setShape(
    const QskBoxShapeMetrics & shape
)

function shape

QskBoxShapeMetrics shape() const

function resetShape

void resetShape()

function text

QString text() const

function setTextOptions

void setTextOptions(
    const QskTextOptions & options
)

function textOptions

QskTextOptions textOptions() const

function graphicSource

QUrl graphicSource() const

function graphicSourceSize

QSizeF graphicSourceSize() const

function graphic

QskGraphic graphic() const

function hasGraphic

bool hasGraphic() const

function resetGraphicSourceSize

void resetGraphicSourceSize()

function setFlat

void setFlat(
    bool on
)

function isFlat

bool isFlat() const

function font

QFont font() const

function layoutRectForSize

QRectF layoutRectForSize(
    const QSizeF & size
) const override

Protected Functions Documentation

function changeEvent

void changeEvent(
    QEvent * event
) override

function updateResources

void updateResources() override

function loadGraphic

virtual QskGraphic loadGraphic(
    const QUrl & url
) const

Public Property Documentation

property text

QString text;

property font

QFont font;

property textOptions

QskTextOptions textOptions;

property graphicSource

QUrl graphicSource;

property graphic

QskGraphic graphic;

property graphicSourceSize

QSizeF graphicSourceSize;

property checkable

bool checkable;

property flat

bool flat;

property shape

QskBoxShapeMetrics shape;

Public Attributes Documentation

variable Panel

static const QskAspect::Subcontrol Panel;

variable Text

static const QskAspect::Subcontrol Text;

variable Graphic

static const QskAspect::Subcontrol Graphic;

Updated on 28 July 2023 at 14:02:28 CEST