[Qt-interest] Ignoring double-click in different widgets

David Ching dc at remove-this.dcsoft.com
Sat Jul 25 04:16:05 CEST 2009


"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




More information about the Qt-interest-old mailing list