PDA

View Full Version : How to find where the cursor is blinking in ui design



mania
5th September 2013, 08:30
Hi all,

I have designed a sample program of 3 QLineedit and 2 QPushbutton.When i clicked one QPushbutton , how to find in which QLineedit the cursor is blinking. Kindly help me if any one knows

Thanks in advance

^NyAw^
5th September 2013, 09:17
Hi,

Take the child list of your ui and then search wich one have the focus.

mania
10th September 2013, 09:12
Hi,

I'm designed 3QLineEdit and 2QPushButton in QWidget class how can i find where the cursor position or where the cursor is blinking on the screen

^NyAw^
10th September 2013, 09:17
Have you readed my answer? You can query the widgets if have the focus.

mania
10th September 2013, 10:08
Hi,

I'm not clear what you are trying to say, can you explain clearly

^NyAw^
10th September 2013, 10:17
Hi,

qwidget.html#focus-prop

mania
10th September 2013, 12:44
Hi,
Thanks for sending the link, i have seen the properties of QWidget class but i'm not get current cursor position on the screen

Thanks in advance..