[Qt-interest] [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and S60 5th Edition 1.0.
Ramesh
ramesh.bs at robosoftin.com
Wed Mar 17 11:42:05 CET 2010
Hi..
I tried it now.. by default the focus will be set to the view..
U need to set the focus to ur mainwindow ..
this->setFocus();
setCentralWidget(view);
just add this code and try… it may work..it worked for me..
From: Xiaoguo.Liu at nokia.com [mailto:Xiaoguo.Liu at nokia.com]
Sent: Wednesday, March 17, 2010 3:00 PM
To: ramesh.bs at robosoftin.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
Yes, it has the following codes:
scene=new QGraphicsScene(this);
scene->setSceneRect(-160,-160,320,320);
view =new QGraphicsView(this);
view->setRenderHint(QPainter::Antialiasing, true);
view->setFrameStyle(QFrame::NoFrame);
view->setScene(scene);
setCentralWidget(view);
QGraphicsItemGroup *group=new QGraphicsItemGroup(NULL);
group->setPos(-80,-80);
scene->addItem(group);
_____
From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
Sent: 2010年3月17日 17:25
To: Liu Xiaoguo (Nokia-FNDC/Beijing); QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
I hv used a simple push button fr testing..
A button widget is set as centrel widget n testing..
Not tried wit graphicswidget… ur sample app has graphicswidget?
From: Xiaoguo.Liu at nokia.com [mailto:Xiaoguo.Liu at nokia.com]
Sent: Wednesday, March 17, 2010 2:48 PM
To: ramesh.bs at robosoftin.com; QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
I think it could be something related to the QGraphicsView used in the
sample code. Your sample app could be a simpy QMainWindow or QWidget
application. I have always been using the latest Qt 4.6.2 release.
_____
From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
Sent: 2010年3月17日 17:15
To: Liu Xiaoguo (Nokia-FNDC/Beijing); QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
Its working..
I tried the sample app its runnig well in N97 its workin ..
Hey the app which u hv sent s nt working.. but the sample app which I hv
created is working well..
You update to Qt 4.6.2 then see it may work…
From: Xiaoguo.Liu at nokia.com [mailto:Xiaoguo.Liu at nokia.com]
Sent: Wednesday, March 17, 2010 12:59 PM
To: ramesh.bs at robosoftin.com; QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
I have tried in on both N97 and N97-mini phones, it does not work at all. On
S60 3rd Edition phones like N95, it works beautifully!
_____
From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
Sent: 2010年3月17日 15:25
To: Liu Xiaoguo (Nokia-FNDC/Beijing); qt-interest at trolltech.com;
QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
Do one thing.. make sample app in nokia 5th edition phone n send lets see
will it work over here or not k
From: Xiaoguo.Liu at nokia.com [mailto:Xiaoguo.Liu at nokia.com]
Sent: Wednesday, March 17, 2010 12:49 PM
To: ramesh.bs at robosoftin.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
The answer is yes. I am now trying to make some sample apps on the 5th
edition.
_____
From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
Sent: 2010年3月17日 15:13
To: Liu Xiaoguo (Nokia-FNDC/Beijing); QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
I have tested my sample application in Nokia 5th edition only..
Have u trued making sample example?
From: Xiaoguo.Liu at nokia.com [mailto:Xiaoguo.Liu at nokia.com]
Sent: Wednesday, March 17, 2010 12:17 PM
To: ramesh.bs at robosoftin.com; QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
Hi Ramesh,
Thanks for your trial. The same code works well on S60 3rd edition devices
without any problems. However, the problem is found on Nokia 5th edition
touch devices.
Best regards,
XiaoGuo
_____
From: ext Ramesh [mailto:ramesh.bs at robosoftin.com]
Sent: 2010年3月17日 13:25
To: Liu Xiaoguo (Nokia-FNDC/Beijing); QtS60-feedback at trolltech.com
Subject: RE: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and
S60 5th Edition 1.0.
Hi…
I tried ur key event code in a sample application.. its working fine..
I tried in two separate examples its working.. good..
But I tried the same in ur project its not working… ur key event code is
fine I guess..
There must be some other problem.. check it..
-Br,
Ramesh
From: qts60-feedback-bounces at trolltech.com
[mailto:qts60-feedback-bounces at trolltech.com] On Behalf Of
Xiaoguo.Liu at nokia.com
Sent: Wednesday, March 17, 2010 9:31 AM
To: QtS60-feedback at trolltech.com
Subject: [QtS60-feedback] Arrow Keypresses missed in Qt on N97 SDK and S60
5th Edition 1.0.
Hi,
Attached please find a sample code for animation. I have tried the example
code on both 5th edtion and N97 SDK. I am trying to set a break points at
"keyPressEvent" code: The execution never stops in the function call when I
press the arrow keys (left, right, up and down). It responses to my OK key
and other keys in the emulator and on real phones. Can someone verify this?
I think it is possible a bug in the Qt software.
void Animation::keyPressEvent ( QKeyEvent * event ){
switch (event->key()) {
case Qt::Key_Right:
edgeAnmi(0);
break;
case Qt::Key_Down:
edgeAnmi(1);
break;
case Qt::Key_Left:
edgeAnmi(2);
break;
case Qt::Key_Up:
edgeAnmi(3);
break;
case Qt::Key_Select:
centerAnmi();
break;
default:
randAnmi();
break;
}
QMainWindow::keyPressEvent(event);
}
Thanks & beset regards,
XiaoGuo
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies. Emails
to and from our network may be logged and monitored. This email and its
attachments are scanned for virus by our scanners and are believed to be
safe. However, no warranty is given that this email is free of malicious
content or virus.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100317/5bad1d4e/attachment.html
More information about the Qt-interest-old
mailing list