Hello,
I have a QLabel and QLineEdit that forms part of plugin for a designer. When I use it in a Dialog I don't see the key cursor blink of QLineEdit, here's my code:
akLabelName = new AKLabel(); //inherits from QLabel
akFieldEdit = new AKField(); //inherits from QLineEdit
setFocusPolicy(Qt::StrongFocus);
//akFieldEdit->setFocus();
akFieldEdit->installEventFilter( this );
akFieldEdit->setFocusPolicy( Qt::StrongFocus );
setFocusProxy(akFieldEdit);
QHBoxLayout *qHBoxLayout = new QHBoxLayout();
qHBoxLayout->addWidget(akLabelName);
qHBoxLayout->addWidget(akFieldEdit);
QVBoxLayout *qVBoxLayout = new QVBoxLayout();
qVBoxLayout->addLayout(qHBoxLayout);
setLayout(qVBoxLayout);
Bookmarks