Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QCursor QWidget::cursor [read, write, inherited]

the cursor shape for this widget

The mouse cursor will assume this shape when it's over this widget. See the list of predefined cursor objects for a range of useful shapes.

An editor widget might use an I-beam cursor:

        setCursor(Qt::IBeamCursor);

If no cursor has been set, or after a call to unsetCursor(), the parent's cursor is used.

See also:
QApplication::setOverrideCursor()

Reimplemented in Q3TextEdit.

Definition at line 149 of file qwidget.h.

Referenced by QLineEdit::cursorForward(), QLineEdit::keyPressEvent(), QHeaderView::mouseDoubleClickEvent(), QGraphicsView::mouseMoveEvent(), QLineEdit::mousePressEvent(), and QLineEdit::paintEvent().


Generated by  Doxygen 1.6.0   Back to index