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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -