[Qt-interest] Ignoring double-click in different widgets
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Sat Jul 25 06:10:41 CEST 2009
Thanks David,
There are actually optional result reporting popups that can occur between
the two forms.
Even then, the problem affects stacked widgets in the same way:
- the double-click event is executed on mouse press in one widget,
- the stacked widget page is switched,
- the following mouse release occurs on the new page's widget, and fires a
click event.
Regards,
Tony.
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of David Ching
> Sent: Saturday, 25 July 2009 12:16
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Ignoring double-click in different widgets
>
>
> "Tony Rietwyk" <tony.rietwyk at rightsoft.com.au> wrote in message
> news:h3pd0i$7dg$1 at eple.troll.no...
> > Hi Everybody,
> >
> > I have a large application with many forms in it. Clicking
> the OK button
> > on form 1, closes form 1, then opens form 2. If the user
> double-clicks
> > the button, then the second click occurs on form2 on
> whatever control
> > happens to be at the same location.
> >
> > The application is used to generate examination questions
> for students to
> > answer. So on many forms it is really important that the
> second click
> > does NOT change the state of the second form.
> >
>
> Though more work, I much prefer to keep form 1 on the screen
> and change the
> contents inside it (perhaps by using a QStackedWidget) when
> the button is
> clicked. This eliminates the flicker and delay in closing
> one window and
> opening another. Just a thought.
>
> -- David
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> __________ Information from ESET NOD32 Antivirus, version of
> virus signature database 4274 (20090724) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
More information about the Qt-interest-old
mailing list