4#ifndef QABSTRACTBUTTON_H
5#define QABSTRACTBUTTON_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qicon.h>
10# include <QtGui/qkeysequence.h>
12#include <QtWidgets/qwidget.h>
32 Q_PROPERTY(
bool checkable READ isCheckable WRITE setCheckable)
33 Q_PROPERTY(
bool checked READ isChecked WRITE setChecked NOTIFY toggled USER
true)
34 Q_PROPERTY(
bool autoRepeat READ autoRepeat WRITE setAutoRepeat)
35 Q_PROPERTY(
bool autoExclusive READ autoExclusive WRITE setAutoExclusive)
36 Q_PROPERTY(
int autoRepeatDelay READ autoRepeatDelay WRITE setAutoRepeatDelay)
37 Q_PROPERTY(
int autoRepeatInterval READ autoRepeatInterval WRITE setAutoRepeatInterval)
57 void setCheckable(
bool);
58 bool isCheckable()
const;
60 bool isChecked()
const;
65 void setAutoRepeat(
bool);
66 bool autoRepeat()
const;
68 void setAutoRepeatDelay(
int);
69 int autoRepeatDelay()
const;
71 void setAutoRepeatInterval(
int);
72 int autoRepeatInterval()
const;
74 void setAutoExclusive(
bool);
75 bool autoExclusive()
const;
77#if QT_CONFIG(buttongroup)
86 void setChecked(
bool);
96 virtual bool hitButton(
const QPoint &
pos)
const;
97 virtual void checkStateSet();
98 virtual void nextCheckState();
The QFocusEvent class contains event parameters for widget focus events.
The QIcon class provides scalable icons in different modes and states.
The QKeyEvent class describes a key event.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define QT_REQUIRE_CONFIG(feature)
myAction setIcon(SomeIcon)
insertRed setText("insert red text")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent