[Qt-interest] FocusInEvent in QLineEdit box of a TabWidget

Raja Rokkam rokkamraja at gmail.com
Mon Dec 28 14:30:00 CET 2009


hey Andres,

          Thanks for the reply. I have actually went about using the
editingFinished signal rather than subclassing the QLineEdit which I did in
a different widget altogether.

editingFinished signal seems to be working fine as of now.

-Raja.

On Mon, Dec 28, 2009 at 2:53 PM, André Somers <andre at familiesomers.nl>wrote:

>  You can put your own widgets on a tab widget, right? So, just subclass
> QLineEdit and use your subclassed version instead of a standard QLineEdit?
> Or, use an event filter on your QLineEdit.
>
>
>
> André
>
>
>
> *Van:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *Namens *Raja Rokkam
> *Verzonden:* maandag 28 december 2009 6:37
> *Aan:* QT Mailing LIST
> *Onderwerp:* [Qt-interest] FocusInEvent in QLineEdit box of a TabWidget
>
>
>
> Hi All,
>
>
>       Can anyone provide me with pointers to implement the focusInEvent for
> a QLineEdit box in a tab ?
> Basically, I have a tabWidget with a signup form in it. The boxes are
> derived from QLineEdit and I would like to customize the focusInEvent,
> focusOutEvent for them.
> Would it be lot easier to use the editingFinished() signal than subclassing
> these protected functions ?
>
>
> Thanks,
> Raja.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091228/c5204f64/attachment.html 


More information about the Qt-interest-old mailing list