Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

webaxwidget.h Example File
activeqt/webbrowser/webaxwidget.h

 /****************************************************************************
 **
 ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
 ** Contact: Qt Software Information (qt-info@nokia.com)
 **
 ** This file is part of the example classes of the Qt Toolkit.
 **
 ** Commercial Usage
 ** Licensees holding valid Qt Commercial licenses may use this file in
 ** accordance with the Qt Commercial License Agreement provided with the
 ** Software or, alternatively, in accordance with the terms contained in
 ** a written agreement between you and Nokia.
 **
 **
 ** If you are unsure which license is appropriate for your use, please
 ** contact the sales department at qt-sales@nokia.com.
 **
 ****************************************************************************/

 #ifndef WEBAXWIDGET_H
 #define WEBAXWIDGET_H

 #include <ActiveQt/QAxWidget>
 #include "windows.h"

 class WebAxWidget : public QAxWidget
 {
 public:

     WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
         : QAxWidget(parent, f)
     {
     }
 protected:
     virtual bool translateKeyEvent(int message, int keycode) const
     {
         if (message >= WM_KEYFIRST && message <= WM_KEYLAST)
             return true;
         else
             return QAxWidget::translateKeyEvent(message, keycode);
     }

 };

 #endif // WEBAXWIDGET_H


Copyright © 2008 Nokia Trademarks
Qt 4.4.3