Public Slots | Public Member Functions | Protected Member Functions | Properties

QPushButton Class Reference

Search for all occurrences

Detailed Description

Examples:

MeshDisplace/displacer.cpp.

Definition at line 57 of file qpushbutton.h.

#include <qpushbutton.h>

Inheritance diagram for QPushButton:
Inheritance graph
[legend]

List of all members.

Public Slots

void  showMenu ()

Public Member Functions

  QPushButton (QWidget *parent=0)
  QPushButton (const QString &text, QWidget *parent=0)
  QPushButton (const QIcon &icon, const QString &text, QWidget *parent=0)
  ~QPushButton ()
QSize  sizeHint () const
QSize  minimumSizeHint () const
bool  autoDefault () const
void  setAutoDefault (bool)
bool  isDefault () const
void  setDefault (bool)
void  setMenu (QMenu *menu)
QMenu menu () const
void  setFlat (bool)
bool  isFlat () const

Protected Member Functions

bool  event (QEvent *e)
void  paintEvent (QPaintEvent *)
void  keyPressEvent (QKeyEvent *)
void  focusInEvent (QFocusEvent *)
void  focusOutEvent (QFocusEvent *)
void  initStyleOption (QStyleOptionButton *option) const
  QPushButton (QPushButtonPrivate &dd, QWidget *parent=0)

Properties

bool  autoDefault
bool  default
bool  flat

Constructor & Destructor Documentation

QPushButton ( QWidget parent = 0 ) [explicit]
QPushButton ( const QString text,
QWidget parent = 0 
) [explicit]
QPushButton ( const QIcon icon,
const QString text,
QWidget parent = 0 
)
QPushButton ( QPushButtonPrivate &  dd,
QWidget parent = 0 
) [protected]

Member Function Documentation

QSize sizeHint ( ) const [virtual]

Reimplemented from QWidget.

Reimplemented in QCommandLinkButton.

QSize minimumSizeHint ( ) const [virtual]

Reimplemented from QWidget.

Reimplemented in QCommandLinkButton.

bool autoDefault ( ) const
void setAutoDefault ( bool  )
bool isDefault ( ) const
void setDefault ( bool  )
void setMenu ( QMenu menu )
QMenu* menu ( ) const
void setFlat ( bool  )
bool isFlat ( ) const
void showMenu ( ) [slot]
bool event ( QEvent e ) [protected, virtual]

Reimplemented from QAbstractButton.

Reimplemented in QCommandLinkButton.

void paintEvent ( QPaintEvent ) [protected, virtual]
void keyPressEvent ( QKeyEvent ) [protected, virtual]
void focusInEvent ( QFocusEvent ) [protected, virtual]
void focusOutEvent ( QFocusEvent ) [protected, virtual]
void initStyleOption ( QStyleOptionButton option ) const [protected]

Property Documentation

bool autoDefault [read, write]

Definition at line 61 of file qpushbutton.h.

bool default [read, write]

Definition at line 62 of file qpushbutton.h.

bool flat [read, write]

Reimplemented in QCommandLinkButton.

Definition at line 63 of file qpushbutton.h.


The documentation for this class was generated from the following file:

QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton
QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton QPushButton