just use
QtopiaApplication::setInputMethodHint() and pass the desired parameter...
the plugins are loaded globaly for all aplications in qtopia.. you dont have to link your application to it..
just use
QtopiaApplication::setInputMethodHint() and pass the desired parameter...
the plugins are loaded globaly for all aplications in qtopia.. you dont have to link your application to it..
Hi,
We tried the following method in our main.cpp.
Qt Code:
#include "notepad.h" #include <QtopiaApplication> int main(int argc,char **argv) { QtopiaApplication app(argc,argv); Notepad *note=new Notepad; //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....
oh man... you are just not following simple c++??
how do you pass parameters to a function?
do it like this..
Qt Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);To copy to clipboard, switch view to plain text mode
Hi,
Thanks for being patience to answer our silly questions ..We are new to C++ and we are learning to improve.
We did the below method of passing parameters and its getting compiled with Qtopia make.
Qt Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);To copy to clipboard, switch view to plain text mode
Once we run our notepad application , we didn't get virtual keyboard on our screen as popup.
We are running notepad as a individual application not with Qtopia phone edition
Whether virtual keyboard comes as popup or it will be added to task bar menu? We don't have a task bar in our application .
use this
setAttribute(Qt::WA_InputMethodEnabled);
inside constructor. It works fine with mobile.
Bookmarks