Eneboo - Documentación para desarrolladores
Slots públicos | Señales | Métodos públicos | Propiedades | Amigas
Referencia de la Clase QToolTipGroup

The QToolTipGroup class collects tool tips into related groups. Más...

#include <qtooltip.h>

Diagrama de herencias de QToolTipGroup
QObject QObject Qt Qt Qt Qt

Lista de todos los miembros.

Slots públicos

void setDelay (bool)
void setEnabled (bool)
void setDelay (bool)
void setEnabled (bool)

Señales

void showTip (const QString &)
void removeTip ()
void showTip (const QString &)
void removeTip ()

Métodos públicos

 QToolTipGroup (QObject *parent, const char *name=0)
 ~QToolTipGroup ()
bool delay () const
bool enabled () const
 QToolTipGroup (QObject *parent, const char *name=0)
 ~QToolTipGroup ()
bool delay () const
bool enabled () const

Propiedades

bool delay
 whether the display of the group text is delayed.
bool enabled
 whether tool tips in the group are enabled.

Amigas

class QTipManager

Descripción detallada

The QToolTipGroup class collects tool tips into related groups.

Tool tips can display two texts: one in the tip and (optionally) one that is typically in a status bar. QToolTipGroup provides a way to link tool tips to this status bar.

QToolTipGroup has practically no API; it is only used as an argument to QToolTip's member functions, for example like this:

        QToolTipGroup * grp = new QToolTipGroup( this, "tool tip relay" );
        connect( grp, SIGNAL(showTip(const QString&)),
                 myLabel, SLOT(setText(const QString&)) );
        connect( grp, SIGNAL(removeTip()),
                 myLabel, SLOT(clear()) );
        QToolTip::add( giraffeButton, "feed giraffe",
                       grp, "Give the giraffe a meal" );
        QToolTip::add( gorillaButton, "feed gorilla",
                       grp, "Give the gorilla a meal" );

This example makes the object myLabel (which you must supply) display (one assumes, though you can make myLabel do anything, of course) the strings "Give the giraffe a meal" and "Give the gorilla a meal" while the relevant tool tips are being displayed.

Deleting a tool tip group removes the tool tips in it.


Documentación del constructor y destructor

QToolTipGroup::QToolTipGroup ( QObject parent,
const char *  name = 0 
)

Constructs a tool tip group called name, with parent parent.

QToolTipGroup::~QToolTipGroup ( )

Destroys this tool tip group and all tool tips in it.

QToolTipGroup::QToolTipGroup ( QObject parent,
const char *  name = 0 
)
QToolTipGroup::~QToolTipGroup ( )

Documentación de las funciones miembro

bool QToolTipGroup::delay ( ) const
bool QToolTipGroup::delay ( ) const
bool QToolTipGroup::enabled ( ) const
bool QToolTipGroup::enabled ( ) const
void QToolTipGroup::removeTip ( ) [signal]
void QToolTipGroup::removeTip ( ) [signal]

This signal is emitted when a tool tip in this group is hidden. See the QToolTipGroup documentation for an example of use.

Ver también:
showTip()
void QToolTipGroup::setDelay ( bool  ) [slot]
void QToolTipGroup::setDelay ( bool  enable) [slot]
void QToolTipGroup::setEnabled ( bool  ) [slot]
void QToolTipGroup::setEnabled ( bool  enable) [slot]
void QToolTipGroup::showTip ( const QString longText) [signal]

This signal is emitted when one of the tool tips in the group is displayed. longText is the extra text for the displayed tool tip.

Ver también:
removeTip()
void QToolTipGroup::showTip ( const QString ) [signal]

Documentación de las funciones relacionadas y clases amigas

QTipManager [friend]

Documentación de propiedades

bool QToolTipGroup::delay [read, write]

whether the display of the group text is delayed.

If set to TRUE (the default), the group text is displayed at the same time as the tool tip. Otherwise, the group text is displayed immediately when the cursor enters the widget.

bool QToolTipGroup::enabled [read, write]

whether tool tips in the group are enabled.

This property's default is TRUE.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'