[PyQt] Giving focus to qlineedit after button pressed
uahmed
gleam.uahmed at gmail.com
Wed Feb 6 22:34:31 GMT 2013
Hi
I have one keypad having keys 0-9 and one qlineedit . Whenever user press
any key it shows in qlineedit . I want that whenever key press the cursor
should be visible in the qlineeidt , right now when i press 0-9 from
keyboard the cursor remain there and keep blinking and as i click on 0-9
button in application the number added in qlineedit but cursor dont blink
anymore .
I tried these after pressing button but didnt work
self.ui.lineEdit.setFocus(True)
self.ui.lineEdit.isActiveWindow()
self.ui.lineEdit.raise_()
self.ui.lineEdit.setFocus(True) ---> This give me little hope the cursor
start blinking but it select all the numbers
Any help
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130207/c1ec71e4/attachment.html>
More information about the PyQt
mailing list