在上诉文件中在中个函数中加上你的键盘处理handle
QWSKeyboardHandler *QWSServer::newKeyboardHandler( const QString &spec )
{
    QWSKeyboardHandler *handler = 0;
    QString device;
    QString type;
    int colon=spec.find(':');
    if ( colon>=0 ) {
       type = spec.left(colon);
       device = spec.mid(colon+1);
    } else {
       type = spec;
    }
    if ( type == "Buttons" ) {
#if defined(QT_QWS_YOPY)
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSyopyButtonsHandler();
#elif defined(QT_QWS_CASSIOPEIA)
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSVr41xxButtonsHandler();
#endif
    } else if ( type == "QVFbKeyboard" ) {
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSVFbKeyboardHandler();
    } else if ( type == "USB" ) {
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );                  
       handler = new QWSUsbKeyboardHandler(device);
    } else if ( type == "TTY" ) {
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSTtyKeyboardHandler(device);
    } 
    else if( type == "Samsung" )  {
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSSamsungKeypadHandler(device);
    }
    else if( type == "Mykeyboard" )  {/*新加的键盘处理程序handler*/
       qWarning( "Keyboard type %s:%s supported", spec.latin1(), device.latin1() );              
       handler = new QWSMykeyboardadHandler(device);
    } 
    else {
       qWarning( "Keyboard type %s:%s unsupported", spec.latin1(), device.latin1() );
    }
    return handler;
}
仿照Samsung handel加上你的handle处理程序就可以了