[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Giving focus to qlineedit after button pressed
From: uahmed <gleam.uahmed () gmail ! com>
Date: 2013-02-06 22:34:31
Message-ID: CAEUvQQyqGP9konD9RM3Br+N=Hz3o2=Z9FocspZ8vFzkry_djbg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<div dir="ltr">Hi<br><br>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 . <br> <br>I tried these after pressing button but didnt \
work<br><br>self.ui.lineEdit.setFocus(True)<br>self.ui.lineEdit.isActiveWindow()<br>self.ui.lineEdit.raise_()<br><br>self.ui.lineEdit.setFocus(True) \
---> This give me little hope the cursor start blinking but it select all the numbers <br> \
<br>Any help<br><br>Thanks<br><br></div>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic