Enabling Virtual Keyboard with Notepad Appllication?
Hi,
We have developed a notepad application in Qtopia. Now we need to use Virtual keyboard ( Input methods )which is available with Qtopia editions.
So whenever i am opening Notepad application automatically QWERTY type keyboard should popup as Virtual Keyboard. How can i do this in Qtopia? Please help
Re: Enabling Virtual Keyboard with Notepad Appllication?
did you tried setting the QtopiaApplication::InputMethodHint ?
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
did you tried setting the QtopiaApplication::InputMethodHint ?
Hi,
Thanks to u r reply
I haven't tried using that class...Let me try and let you know the result...
3 Attachment(s)
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
did you tried setting the QtopiaApplication::InputMethodHint ?
Hi,
We have found the above method, but we didn't knew how to use this one...Could you please paste some code on how to use this one ? It could be more helpful.
We have plugin libraries available for all input methods in /plguin/inputmethods
"libdockedkeyboard.so , libqkeyboard.so, libpredictivekeyboard.so
Now is there any chance to link this plugins to our notepad application. So that the particular input method will popup when the application runs.
Attached source files for reference if needed.
Re: Enabling Virtual Keyboard with Notepad Appllication?
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..
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
Hi,
We tried the following method in our main.cpp.
Code:
#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();
}
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....
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
Hi,
Desperately waiting for your input...Please help...We are having a demo..
Re: Enabling Virtual Keyboard with Notepad Appllication?
oh man... you are just not following simple c++??
how do you pass parameters to a function?
do it like this..
Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
oh man... you are just not following simple c++??
how do you pass parameters to a function?
do it like this..
Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);
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.
Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);
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 .
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
MrDeath
oh man... you are just not following simple c++??
how do you pass parameters to a function?
do it like this..
Code:
QtopiaApplication::setInputMethodHint(note, QtopiaApplication::Text);
Hi,
Any Idea on Virtual keyboard posted thread....
Re: Enabling Virtual Keyboard with Notepad Appllication?
Quote:
Originally Posted by
augusbas
Hi,
Any Idea on Virtual keyboard posted thread....
Hi,
Any body there to help out to solve our problem posted.
Re: Enabling Virtual Keyboard with Notepad Appllication?
use this
setAttribute(Qt::WA_InputMethodEnabled);
inside constructor. It works fine with mobile.