Hi,

We have developed a custom keyboard plugin for Qt-Embedded and Qtopia.

The plugin works fine with Qtopia. But the same plugin, if we compile for Qt-Embedded we have compilation error for the follwing code.

Qt Code:
  1. QWSKeyboardHandler* IMX31KbdDriverPlugin::create( const QString& driver)
  2. {
  3. if (driver.toLower() == "imx31kbdhandler") {
  4. qWarning("Before call IMX31KbdHandler()");
  5. return new IMX31KbdHandler();
  6. }
  7. return 0;
  8. }
To copy to clipboard, switch view to plain text mode 

Error:

imx31kbddriverplugin.cpp:57: error: expected type-specifier before ‘IMX31KbdHandler’
imx31kbddriverplugin.cpp:57: error: cannot convert ‘int*’ to ‘QWSKeyboardHandler*’ in return
imx31kbddriverplugin.cpp:57: error: expected ‘;’ before ‘IMX31KbdHandler’
imx31kbddriverplugin.cpp:57: error: ‘IMX31KbdHandler’ was not declared in this scope

return new IMX31KbdHandler(); is the only instruction which creates the error. No idea what could be the reason. Suggestions please.