
Originally Posted by
MrDeath
Hi,
We tried the following method in our main.cpp.
#include "notepad.h"
#include <QtopiaApplication>
int main(int argc,char **argv)
{
QtopiaApplication app(argc,argv);
Notepad *note=new Notepad;
QtopiaApplication
::setInputMethodHint(QWidget *Notepad, InputMethodHint
2);
//QtopiaApplication::showInputMethod();
note->show();
return app.exec();
}
#include "notepad.h"
#include <QtopiaApplication>
int main(int argc,char **argv)
{
QtopiaApplication app(argc,argv);
Notepad *note=new Notepad;
QtopiaApplication::setInputMethodHint(QWidget *Notepad, InputMethodHint 2);
//QtopiaApplication::showInputMethod();
note->show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
We got a error InputMethodHint was not declared in this scope.
We have a notepad class which is derived from QmainWindow.
We really have no idea on setting input method....Could please help us by code , how to use the setInputMethod function....
Bookmarks