Eneboo - Documentación para desarrolladores
Clases | Slots públicos | Métodos públicos
Referencia de la Clase QTipManager
Diagrama de herencias de QTipManager
QObject Qt Qt

Lista de todos los miembros.

Clases

struct  Tip

Slots públicos

void hideTip ()

Métodos públicos

 QTipManager ()
 ~QTipManager ()
bool eventFilter (QObject *o, QEvent *e)
void add (const QRect &gm, QWidget *, const QRect &, const QString &, QToolTipGroup *, const QString &, QToolTip *, bool)
void add (QWidget *, const QRect &, const QString &, QToolTipGroup *, const QString &, QToolTip *, bool)
void remove (QWidget *, const QRect &, bool delayhide=FALSE)
void remove (QWidget *)
void removeFromGroup (QToolTipGroup *)
void hideTipAndSleep ()
QString find (QWidget *, const QPoint &)
void setWakeUpDelay (int)

Documentación del constructor y destructor

QTipManager::QTipManager ( )
QTipManager::~QTipManager ( )

Documentación de las funciones miembro

void QTipManager::add ( const QRect gm,
QWidget w,
const QRect r,
const QString s,
QToolTipGroup g,
const QString gs,
QToolTip tt,
bool  a 
)
void QTipManager::add ( QWidget w,
const QRect r,
const QString s,
QToolTipGroup g,
const QString gs,
QToolTip tt,
bool  a 
)
bool QTipManager::eventFilter ( QObject ,
QEvent  
) [virtual]

Filters events if this object has been installed as an event filter for the watched object.

In your reimplementation of this function, if you want to filter the event e, out, i.e. stop it being handled further, return TRUE; otherwise return FALSE.

Example:

    class MyMainWindow : public QMainWindow
    {
    public:
        MyMainWindow( QWidget *parent = 0, const char *name = 0 );

    protected:
        bool eventFilter( QObject *obj, QEvent *ev );

    private:
        QTextEdit *textEdit;
    };

    MyMainWindow::MyMainWindow( QWidget *parent, const char *name )
        : QMainWindow( parent, name )
    {
        textEdit = new QTextEdit( this );
        setCentralWidget( textEdit );
        textEdit->installEventFilter( this );
    }

    bool MyMainWindow::eventFilter( QObject *obj, QEvent *ev )
    {
        if ( obj == textEdit ) {
            if ( e->type() == QEvent::KeyPress ) {
                QKeyEvent *k = (QKeyEvent*)ev;
                qDebug( "Ate key press %d", k->key() );
                return TRUE;
            } else {
                return FALSE;
            }
        } else {
            // pass the event on to the parent class
            return QMainWindow::eventFilter( obj, ev );
        }
    }

Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.

Atención:
If you delete the receiver object in this function, be sure to return TRUE. Otherwise, Qt will forward the event to the deleted object and the program might crash.
Ver también:
installEventFilter()

Reimplementado de QObject.

QString QTipManager::find ( QWidget w,
const QPoint pos 
)
void QTipManager::hideTip ( ) [slot]
void QTipManager::hideTipAndSleep ( )
void QTipManager::remove ( QWidget w)
void QTipManager::remove ( QWidget w,
const QRect r,
bool  delayhide = FALSE 
)
void QTipManager::removeFromGroup ( QToolTipGroup g)
void QTipManager::setWakeUpDelay ( int  i)

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