[Qt-interest] problem with focusEvent

Chandru... sekarwagmare at gmail.com
Mon Aug 16 14:56:35 CEST 2010


yeah this is the only way ... use a group or a combobox .... thanks for
reply ....

On Mon, Aug 16, 2010 at 5:32 PM, Pritam Ghanghas <
pritam_ghanghas at infosys.com> wrote:

> Check focus policy of your mainWindow. Probably it cant take focus
> and you never get a focusOutEvent in popWidget. BTW you can look at
> QComboBox also.
>
>
> --
> Thanks,
> Pritam
>
>
> On Mon, 2010-08-16 at 16:34 +0530, Chandru... wrote:
> > hi friends,
> >
> >          my task is to show a list widget when user press or click on
> > a lineEdit() ...
> >          i made a small class popWidget derived from QListWidget and
> > using the event filter on lineEdit i am showing the popWidget  using
> > show()...
> >          then comes the problem with hide() when the user press
> > somewhere in the mainwindow ..
> >         i reimplemented focusOutEvent() on popWidget when it
> >  actually that lineEdit is a part of the object say subWindow of
> > mainWindow so when i press any where in subWindow i can manage to hide
> > the popWidget but not in the mainWindow ..
> >
> > how can i send the particular event to the mainWindow ..?
> >
> > please help me ...
> >
> > --
> > WAGMARE
> >
> >
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100816/bc125558/attachment.html 


More information about the Qt-interest-old mailing list