[Qt-interest] Generating mouse press event; but text don't highlight
Thiago Macieira
thiago at kde.org
Thu Sep 24 09:26:56 CEST 2009
Em Quinta-feira 24. Setembro 2009, às 08.40.44, Purushottam R S escreveu:
> I am generating Mouse Press event(without releasing) and It Works.
> But if I move the mouse after that, the text below mouse pointer is not
> getting highlighted (selected). Can anybody tell me what is wrong..
Nothing is wrong.
If the mouse button isn't released, then moving the mouse after generating a
"press" event is considered a mouse drag. That's how text is selected.
If you want the selecting not to happen, you must send a Mouse Release event.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
Qt Developer Days 2009 | Registration Now Open!
Munich, Germany: Oct 12 - 14 San Francisco, California: Nov 2 - 4
http://qt.nokia.com/qtdevdays2009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090924/6c9aaced/attachment.bin
More information about the Qt-interest-old
mailing list