nemaider
1st June 2021, 16:38
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:
QLineEdit * nicknameField = new QLineEdit();
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.
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:
QLineEdit * nicknameField = new QLineEdit();
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.