[Qt-interest] Generating mouse press event; but text don't highlight
Purushottam R S
purushottam_r_s at yahoo.com
Thu Sep 24 08:40:44 CEST 2009
Hi All,
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..
Here is my code.: - (I doing this in QWebView derived class)
QPoint gpos = QCursor::pos();
QMouseEvent *event;
event = new QMouseEvent( QEvent::MouseButtonPress,
mapFromGlobal( gpos ), gpos,
Qt::LeftButton,Qt::NoButton,Qt::NoModifier);
QApplication::postEvent(this,event);
QApplication::processEvents();
regards
Purush
Connect more, do more and share more with Yahoo! India Mail. Learn more. http://in.overview.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090924/404a2847/attachment.html
More information about the Qt-interest-old
mailing list