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

QRect QPlainTextEdit::cursorRect (  )  const

returns a rectangle (in viewport coordinates) that includes the cursor of the text edit.

Definition at line 2211 of file qplaintextedit.cpp.

References QRect::translate().

Referenced by event().

    Q_D(const QPlainTextEdit);
    QRect r = d->control->cursorRect().toRect();
    return r;

Generated by  Doxygen 1.6.0   Back to index