[Qt-interest] setFocus()
Alexandre Beraud
aberaud at infflux.com
Thu Feb 26 14:05:55 CET 2009
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
More information about the Qt-interest-old
mailing list