PDA

View Full Version : Keybord



Kaluss
13th November 2012, 08:37
Hello guys and maybe some girls :)
I got one problem with my keybord widget.
It has method setLine(QLineEdit*).
How to set such thing for e.g. when i press tab button and change active QLineEdit how to force widget to make this method ?
Thanks

sonulohani
13th November 2012, 10:27
Use QShortcut (http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCIQFjAA&url=http%3A%2F%2Fdoc.qt.digia.com%2Fqt%2Fqshortcut .html&ei=ZBKiUILdM8zRrQelxoHYBA&usg=AFQjCNH9CBYig1ZwjXBrar5ViJIwhEMEaw)class.

Kaluss
13th November 2012, 22:37
I hit thanks, however it's not exacly what im seeking for. QShortcut will works only when I press the button but not when i use a mice.

Lesiok
14th November 2012, 09:23
And what about the QWidget focus functions reimplementation ?