I'd like to take a normal QLineEdit
, and change the shape of the cursor. So with a subclass like so:
class myLineEdit : public QLineEdit
{
Q_OBJECT
signals:
public:
explicit myLineEdit(QWidget * parent = 0)
{
}
protected:
};
And make it so that the cursor is several pixels wide, like that of a Linux terminal. By default, the cursor to indicate text position is very slim.
I assume I need to override something in the paintevent()
? What exactly in the paintevent
would be responsible for drawing the single pixel blinking line QLineEdit()
defaults to? I could not find this information in the documentation.