QLineEdit doesn't recive any character
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:
Code:
nicknameField->setPlaceholderText("Enter your nickname");
nicknameField->setGeometry(pxPos,260,200,30);
scene->addWidget(nicknameField);
PS. If it can help I working on CLion IDE with Qt5 library on windows 10.
Re: QLineEdit doesn't recive any character
This line edit is clearly part of a larger construct that we cannot see.
What would help is a small, self-contained program that demonstrates the problem. Generally doing this will make the problem disappear (i.e. the problem was elsewhere in your larger program) or become obvious.