[Qt-interest] Generating mouse press event; but text don't highlight
Purushottam R S
purushottam_r_s at yahoo.com
Thu Sep 24 10:57:50 CEST 2009
Sorry about my bad communication, Looks like I confused people.
Problem is: When I am generating Mouse Press event and then move the mouse, the text is NOT highlighted.
(MousePressEvent handler, received "press" event properly)
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
________________________________
From: Purushottam R S <purushottam_r_s at yahoo.com>
To: qt-interest at trolltech.com
Sent: Thursday, 24 September, 2009 12:10:44 PM
Subject: Generating mouse press event; but text don't highlight
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
________________________________
Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.
Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090924/0e24a802/attachment.html
More information about the Qt-interest-old
mailing list