Results 1 to 3 of 3

Thread: how to open a keyboard...?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    123
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default how to open a keyboard...?

    hi...

    can anyone say me how to use the function QWSServer::openKeyboard();
    .i used it in a function as follows:

    Qt Code:
    1. void keyclass::keyboardopen()
    2. {
    3. QWSServer::openKeyboard();
    4. }
    To copy to clipboard, switch view to plain text mode 
    .

    it showed me th following error:
    "error: cannot call member function ‘void QWSServer::openKeyboard()’ without object".
    is this the right way to use it...?else how to use this...?


    (hey i did not put the smilies in-between,the notation for "colon and o" is that.dont mistake me..)
    thanks in advance...
    Last edited by wysota; 20th December 2006 at 11:08. Reason: missing [code] tags

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    10
    Thanked 80 Times in 74 Posts

    Default Re: how to open a keyboard...?

    openKeyboard is not a static member function of the class QWSServer and therefore you cannot call it like this

    Qt Code:
    1. QWSServer::openKeyborad()//Wrong
    To copy to clipboard, switch view to plain text mode 

    You will first need to create an object of QWSServer and then access the function using that object. Something like

    Qt Code:
    1. QWSServer wsServer;
    2. wsServer.openKeyboard();
    To copy to clipboard, switch view to plain text mode 

    Also, access to the QWSServer instance can be obtained using the global qwsServer pointer. So you can use something like

    Qt Code:
    1. qwsServer->openKeyboard();
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Dec 2006
    Posts
    123
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: how to open a keyboard...?

    hi..

    thank you for the suggestion.i used and compiled it without any errors. but still need some clarifications. actually i need to develop a virtual keyboard like application. for that should i require to use this function and the QWSServer::setKeyboardHandler ( QWSKeyboardHandler * kh ). if yes then what is the parameter that i need to pass for the" kh" in this function...?Also how to test this whether our it has openned the device...?


    i had designed the keyboard with pushbuttons and when they are clicked i'l use the sendKeyEvent to send the key codes. i have a textedit in the same widget above the pushbuttons. so when user presses the pushbuttons, the letters corresponding to the unicodes are displayed in the textedit box. can anyone how is this mapped to the kernel from sendKeyEvent function...? i traced the function but could not get where its being given to the kernel ...i think i'm missing some more that i dont konw.

    can anyone give me suggesstions or solutions for this...?

Similar Threads

  1. Replies: 3
    Last Post: 7th October 2015, 20:43
  2. Replies: 3
    Last Post: 25th August 2010, 13:39
  3. Replies: 2
    Last Post: 24th July 2006, 19:36
  4. Cannot open keyboard: Permission denied
    By jpn in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 19th June 2006, 22:57
  5. Replies: 11
    Last Post: 24th March 2006, 07:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.