[Qt-interest] How to set the focus

Ravi_Kalepalli Ravi_Kalepalli at Satyam.com
Wed Mar 18 09:01:05 CET 2009


Hi

I am using QPushButton(), on that I am setting some actions using QActions.
For example zoomIn , zoomOut,rotate....

When I select zoonIN action, that particular action is performing but I am loosing focus. I have to come out of the application and
Again I have to choose the QPushButton, then it is working again I have to come out of the application.........

menu = new QMenu(this);
menu->addAction(ZoomIN);
menu->addAction(ZoomOUT);
menu->addAction(Rotate)
optionsButton->setMenu(menu);// optionsButton is QPushButton type

How to resolve this issue?

optionsButton->setFocus();
optionsButton->grabMouse()

these setFocus/grabMouse is not working.

Thanks in advance

Ravi Kalepalli
Telephone: 080-66577808
Mobile: 9880724688
[cid:image001.gif at 01C9A7CD.87B43BC0]


________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090318/6fcb9f07/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 8498 bytes
Desc: image001.gif
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090318/6fcb9f07/attachment.gif 


More information about the Qt-interest-old mailing list