Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QCommandLinkButton Class

The QCommandLinkButton widget provides a Vista style command link button. More...

 #include <QCommandLinkButton>

Inherits: QPushButton.

This class was introduced in Qt 4.4.

Public Types

enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }

Properties

Public Functions

QAbstractButton(QWidget * parent = 0)
QCommandLinkButton(QWidget * parent = 0)
QCommandLinkButton(const QString & text, QWidget * parent = 0)
QCommandLinkButton(const QString & text, const QString & description, QWidget * parent = 0)
~QAbstractButton()
virtual ~QPaintDevice()
bool autoExclusive() const
bool autoRepeat() const
int autoRepeatDelay() const
int autoRepeatInterval() const
int colorCount() const
int depth() const
QString description() const
QButtonGroup * group() const
int height() const
int heightMM() const
QIcon icon() const
QSize iconSize() const
bool isCheckable() const
bool isChecked() const
bool isDown() const
int logicalDpiX() const
int logicalDpiY() const
virtual QPaintEngine * paintEngine() const = 0
bool paintingActive() const
int physicalDpiX() const
int physicalDpiY() const
void setAutoExclusive(bool)
void setAutoRepeat(bool)
void setAutoRepeatDelay(int)
void setAutoRepeatInterval(int)
void setCheckable(bool)
void setDescription(const QString & description)
void setDown(bool)
void setIcon(const QIcon & icon)
void setShortcut(const QKeySequence & key)
void setText(const QString & text)
QKeySequence shortcut() const
QString text() const
int width() const
int widthMM() const
  • 10 public functions inherited from QPushButton
  • 215 public functions inherited from QWidget
  • 31 public functions inherited from QObject

Public Slots

void animateClick(int msec = 100)
void click()
void setChecked(bool)
void setIconSize(const QSize & size)
void toggle()

Signals

void clicked(bool checked = false)
void pressed()
void released()
void toggled(bool checked)

Protected Functions

QPaintDevice()
virtual void changeEvent(QEvent * e)
virtual void checkStateSet()
virtual bool event(QEvent * e)
virtual void focusInEvent(QFocusEvent * e)
virtual void focusOutEvent(QFocusEvent * e)
virtual bool hitButton(const QPoint & pos) const
virtual void init(QPainter * painter) const
virtual void keyPressEvent(QKeyEvent * e)
virtual void keyReleaseEvent(QKeyEvent * e)
virtual int metric(PaintDeviceMetric metric) const
virtual void mouseMoveEvent(QMouseEvent * e)
virtual void mousePressEvent(QMouseEvent * e)
virtual void mouseReleaseEvent(QMouseEvent * e)
virtual void nextCheckState()
virtual void paintEvent(QPaintEvent * e) = 0
virtual QPaintDevice * redirected(QPoint * offset) const
virtual QPainter * sharedPainter() const
virtual void timerEvent(QTimerEvent * e)

Reimplemented Protected Functions

virtual bool event(QEvent * e)
virtual int heightForWidth(int width) const
virtual QSize minimumSizeHint() const
virtual void paintEvent(QPaintEvent *)
virtual QSize sizeHint() const
  • 7 protected functions inherited from QPushButton
  • 37 protected functions inherited from QWidget
  • 9 protected functions inherited from QObject

Additional Inherited Members

  • 4 static public members inherited from QWidget
  • 11 static public members inherited from QObject
  • 1 protected slot inherited from QWidget

Detailed Description

The QCommandLinkButton widget provides a Vista style command link button.

The command link is a new control that was introduced by Windows Vista. It's intended use is similar to that of a radio button in that it is used to choose between a set of mutually exclusive options. Command link buttons should not be used by themselves but rather as an alternative to radio buttons in Wizards and dialogs and makes pressing the "next" button redundant. The appearance is generally similar to that of a flat pushbutton, but it allows for a descriptive text in addition to the normal button text. By default it will also carry an arrow icon, indicating that pressing the control will open another window or page.

See also QPushButton and QRadioButton.

Property Documentation

description : QString

This property holds a descriptive label to complement the button text.

Setting this property will set a descriptive text on the button, complementing the text label. This will usually be displayed in a smaller font than the primary text.

Access functions:

QString description() const
void setDescription(const QString & description)

flat : bool

This property holds this property determines whether the button is displayed as a flat panel or with a border.

By default, this property is set to false.

Access functions:

bool isFlat() const
void setFlat(bool)

See also QPushButton::flat.

Member Function Documentation

QCommandLinkButton::QCommandLinkButton(QWidget * parent = 0)

Constructs a command link with no text and a parent.

QCommandLinkButton::QCommandLinkButton(const QString & text, QWidget * parent = 0)

Constructs a command link with the parent parent and the text text.

QCommandLinkButton::QCommandLinkButton(const QString & text, const QString & description, QWidget * parent = 0)

Constructs a command link with a text, a description, and a parent.

bool QCommandLinkButton::event(QEvent * e) [virtual protected]

Reimplemented from QObject::event().

int QCommandLinkButton::heightForWidth(int width) const [virtual protected]

Reimplemented from QWidget::heightForWidth().

QSize QCommandLinkButton::minimumSizeHint() const [virtual protected]

Reimplemented from QWidget::minimumSizeHint().

void QCommandLinkButton::paintEvent(QPaintEvent *) [virtual protected]

Reimplemented from QWidget::paintEvent().

QSize QCommandLinkButton::sizeHint() const [virtual protected]

Reimplemented from QWidget::sizeHint().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web