[Qt-interest] setFocus()
Ravi_Kalepalli
Ravi_Kalepalli at Satyam.com
Thu Feb 26 14:23:09 CET 2009
Actaully when I am trying with the following code, iam getting the errors
pauseButton->setFocus(Qt::OtherFocusReason);
or
pauseButton->setFocus(true);
Error:
function call '[QPushButton].setFocus(bool)' does not match
How to solve this issue?
Thank you,
Regards
Ravi K
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of chandrasekar wagmare
Sent: Thursday, February 26, 2009 6:45 PM
To: Alexandre Beraud
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] setFocus()
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<mailto: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<mailto: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<mailto:aberaud at infflux.com>
Visitez notre site : www.infflux.com<http://www.infflux.com>
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com<mailto:Qt-interest at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
CHANDRU
________________________________
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/20090226/9166a2d5/attachment.html
More information about the Qt-interest-old
mailing list