Hello guys,
I have got problem with QLineEdit class.
I want to create lineedit object and it working, but if I running my program this input doesn't recive character that I press.
I tried to use releaseKeyboard() method, setting focus on this object too, but this still doesn't working.
My code:
nicknameField->setPlaceholderText("Enter your nickname");
nicknameField->setGeometry(pxPos,260,200,30);
scene->addWidget(nicknameField);
QLineEdit * nicknameField = new QLineEdit();
nicknameField->setPlaceholderText("Enter your nickname");
nicknameField->setGeometry(pxPos,260,200,30);
scene->addWidget(nicknameField);
To copy to clipboard, switch view to plain text mode
PS. If it can help I working on CLion IDE with Qt5 library on windows 10.
Bookmarks