Setting a different cursortype for lineedit
-
wrote on 12 Jan 2011, 09:25 last edited by
Any ideas how to set a different cursor type to QLineedit.
I tried th efollowing,Doesn't work.
@
class a:public Qlineedit
{
}a()
{
setCursor(QT:IBeamCursor);
}
@[edit: Mark up code, Tobias Hunger]
-
wrote on 12 Jan 2011, 10:45 last edited by
As far as I know, it's not possible, at least there is no public API.
setCursor() only changes the mouse cursor:
bq. "QWidget::setCursor() ":http://doc.qt.nokia.com/stable/qwidget.html#cursor-prop
The mouse cursor will assume this shape when it's over this widget. -
wrote on 12 Jan 2011, 11:46 last edited by
is it possible to add QTextCursor to display a custom cursor in QLineEdit
-
wrote on 12 Jan 2011, 11:55 last edited by
QTextCursor is not about visual appearance but only about positions and selections in a text document.
2/4