c++ - How to use .hide on a Qt LineEdit, still take input? -
i have qlineedit hide user still take in input form somewhere. creating typing tutor , want take input in hidden manner in order provide more dynamic form of feedback.
any other suggestions best accomplish appreciated
you can not it. when qlineedit
hidden, there no focus on it, , can not grab events.
if persist on using qlineedit
there's option turn off displaying text.qlineedit::noecho
.
lineedit->setechomode(qlineedit::noecho);
this show edit box, doesn't show text.
otherwise, should write slot grab window keypressed
signals, , handle yourself.
Comments
Post a Comment