[Qt-interest] setFocus()

chandrasekar wagmare sekarwagmare at gmail.com
Thu Feb 26 14:15:24 CET 2009


i think for setFocus we need to reimplement QFocusEvent   for QPushButton as
the syntatic is already defined ..

On Thu, Feb 26, 2009 at 6:35 PM, Alexandre Beraud <aberaud at infflux.com>wrote:

> Hi,
>
> Maybe you want a button to be the default button of your window. In such
> a case, derive QDialog and use
> button->setDefault(true);
> Otherwise, but->setFocus(Qt::OtherFocusReason) should work and if not,
> then we need more information, like a part of your code.
>
> Regards,
>
> Alex
>
>
> Ravi_Kalepalli a écrit :
> >
> > Hi
> >
> >
> >
> > I am trying to set the focus on QPushButton using setFocus(). But I am
> > unable to set the focus.
> >
> > Is there any other alternative?
> >
> >
> >
> > Please help me in this.
> >
> >
> >
> > Thanks and Regards
> >
> >
> >
> > Ravi Kalepalli
> >
> > Telephone: 080-66577808
> >
> > Mobile: 9880724688
> >
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> > 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.
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
>
> --
> BERAUD Alexandre
> Ingénieur Développement
>
> Infflux - Informatique & Flux
> Tel: 01 49 57 92 00 - Fax : 01 49 57 92 01
> Mail: aberaud at infflux.com
> Visitez notre site :  www.infflux.com
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090226/9648d0a2/attachment.html 


More information about the Qt-interest-old mailing list