this is my code use, but it cant build error:cannot declare variable to be of abstract type 'QWSMouseHandler

can you help me ?



Qt Code:
  1. #if defined(Q_OS_LINUX)
  2. QPoint qpoint = QWSMouseHandler::pos();
  3. Qt::MouseButtons buttons = Qt::NoButton;
  4. if (qFuzzyCompare(slideValue(), static_cast<qreal>(1.0f)))
  5. {
  6. if (event->key() == Qt::Key_Left)
  7. {
  8. qpoint.setX(qpoint.x() + 30);
  9. }
  10. if (event->key() == Qt::Key_Up)
  11. {
  12. qpoint.setY(qpoint.x() + 30);
  13. }
  14. if (event->key() == Qt::Key_Down)
  15. {
  16. qpoint.setX(qpoint.x() - 30);
  17. }
  18. if (event->key() == Qt::Key_Right)
  19. {
  20. qpoint.setY(qpoint.x() - 30);
  21. }
  22. if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return)
  23. {
  24. buttons |= Qt::LeftButton;
  25. }
  26. QWSMouseHandler::mouseChanged (qpoint,buttons,0);
  27. //QWSServer::sendMouseEvent( qpoint, 0 );
  28. }
  29. #else
To copy to clipboard, switch view to plain text mode 


src/BrowserWindow.cpp:101: error: cannot declare variable 'qwsMouse' to be of abstract type 'QWSMouseHandler'
../../../../install/include/QtGui/qmouse_qws.h:67: note: because the following virtual functions are pure within 'QWSMouseHandler':
../../../../install/include/QtGui/qmouse_qws.h:77: note: virtual void QWSMouseHandler::resume()
../../../../install/include/QtGui/qmouse_qws.h:78: note: virtual void QWSMouseHandler::suspend()
src/BrowserWindow.cpp:127: error: no matching function for call to 'QWSMouseHandler::mouseChanged(QPoint*, Qt::MouseButtons&, int)'
../../../../install/include/QtGui/qmouse_qws.h:81: note: candidates are: void QWSMouseHandler::mouseChanged(const QPoint&, int, int)
make: *** [BrowserWindow.o] Error 1