[Qt-interest] Qkey Press Event
Yuvaraj R
yuvaraj at ongobiz.com
Mon Jul 13 12:03:59 CEST 2009
Hi All
My program is detecting thre Enter key only from keyboard..
I am trying with
void MainWindow::keyPressEvent(QKeyEvent *event)
{
if(event->key() == Qt::Key_5)
{
QMessageBox::information(0,"",QString("Numer Key"));
}
}
this one is not detecting the number key five.
I want use only number keys..
what mistake i have done...
Any Idea ..
Advance Thanks
Yuvaraj R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090713/5690525e/attachment.html
More information about the Qt-interest-old
mailing list