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

Arnold Krille arnold at arnoldarts.de
Sat Jul 25 10:15:13 CEST 2009


Hi,

On Friday 24 July 2009 04:57:22 Tony Rietwyk wrote:
> Arnold: 'Educate users not to double-click'? I hope your are joking! The
> application is used by school kids, and even older people like myself whose
> fingers just don't always work as expected ;O)

Hehe, and still I managed to teach me, my wife, even my 50 year old mother and 
my ~80 year old grandfather _not_ to double click in linux. I think school 
kids are actually smarter then you might think. And they learn fast.

> Disabling the entire form
> for half a second would lead to nasty flashing.

The problem seems to be that the first click on the "next"/"ok" button changes 
the form and the second click already reaches the "next"/"ok" button of the 
second form. So if you don't want to disable the whole form because of 
flashing, maybe just disable the button under the mouse for 0.5-1 seconds after 
showing the form?
Should be far easier then dealing with the whole event-stuff yourself...

And if you want to teach them about double-click vs. single-click, the button 
stays enabled but when clicked within the first second it pops up an 
educational message with a funny picture.

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090725/8531bdc9/attachment.bin 


More information about the Qt-interest-old mailing list