Results 1 to 6 of 6

Thread: Virtual Keyboard + Touchscreen

  1. #1
    Join Date
    Jan 2009
    Location
    Barcelona
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Virtual Keyboard + Touchscreen

    Hi to everyone,

    I'm new on Qt, and I would like to know if there's any library to load a Virtual Keyboard on a Touchscreen, or if there's any way to do it. I've looked for it, and I found nothing :-S

    I'm developing a C++ application with Qt 4 that will run on a linux OS, and has a touchscreen on it.

    Some help would be appreciated.

    Thanks in advance,

    Javi

  2. #2
    Join Date
    Jan 2006
    Posts
    132
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Virtual Keyboard + Touchscreen

    http://www.qt-apps.org/content/show....?content=77983

    Did not work for me because it is only for X11, and I am developing for windows.
    You may have more luck with it since you are on linux.


    I finally made my own classes that work on windows (and should also work on other Qt platforms basically). I can't release it however because it is part of a commercial project and I don't have time to isolate it in a separate lib.

    Numeric:



    Swiss German:

    Last edited by seneca; 23rd January 2009 at 12:32.

  3. The following user says thank you to seneca for this useful post:

    javi (26th January 2009)

  4. #3
    Join Date
    Jan 2009
    Location
    Barcelona
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Thumbs up Re: Virtual Keyboard + Touchscreen

    Thank you very much. I've downloaded it and has given me some compilation errors and dependencies. I'll try to work on it this weekend.

    As soon as i got it running i'll make you know it.


    Thks again!

    Javi

  5. #4
    Join Date
    Jan 2009
    Location
    Barcelona
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Virtual Keyboard + Touchscreen

    Hi Seneca,

    As i said the last post, when i decompressed it and try to compile, i had some errors. I write the steps i did and the error it gave to me:

    qmake -project
    qmake
    make
    Errors:
    mainfrm.cpp:18:24: error: QDomDocument: File or directory doesn't exist
    mainfrm.cpp:19:23: error: QDomElement: File or directory doesn't exist
    The content of mainfrm.cpp[18,19]
    Qt Code:
    1. #include <QDomDocument>
    2. #include <QDomElement>
    To copy to clipboard, switch view to plain text mode 

    changes i did:
    Qt Code:
    1. #include <QtXml/qdom.h>
    To copy to clipboard, switch view to plain text mode 

    make clean
    make
    Errors:
    [...]
    g++ -o qvkeyboard main.o mainfrm.o qmybutton.o moc_mainfrm.o moc_qmybutton.o
    -L/usr/lib -lQtGui -lQtCore -lpthread
    mainfrm.o: In function `mainForm::sendKey(unsigned int, bool, bool)':
    mainfrm.cpp:(.text+0x3a2): undefined reference to `XTestFakeKeyEvent'
    [...]
    Do you know why i have this compilation error? If you compile it on linux, do you have the same error? Can you help me again, please?

    Thanks in advance,

    Javi

  6. #5
    Join Date
    Jan 2006
    Posts
    132
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Virtual Keyboard + Touchscreen

    Sorry, as I wrote I needed to make my own cross-platform capable vkb, because that one on qt-apps is for linux only and I needed one for windows. I did not compile that package, just viewed it.

    From the message it seems that it only lacks some testing code, so maybe just deleting that references would do the trick.

  7. #6
    Join Date
    Jan 2009
    Location
    Barcelona
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Virtual Keyboard + Touchscreen

    Hi again,

    Finally i could compile it and make it work!!!

    I just modified manually the last compilation line, changing:

    g++ -o qvkeyboard main.o mainfrm.o qmybutton.o moc_mainfrm.o moc_qmybutton.o -L /usr/lib/ -lQtGui -lQtCore -lpthread
    for:

    g++ -Wall -g -o qvkeyboard main.o mainfrm.o qmybutton.o moc_mainfrm.o moc_qmybutton.o -L /usr/lib/ -lQtGui -lQtCore -lpthread -lQtXml -lQtXmlPatterns -lX11 -lXtst
    Thank you again!


    Javi
    Last edited by javi; 26th January 2009 at 15:33.

Similar Threads

  1. virtual keyboard done with qt4-designer
    By Klaus_EAN in forum Qt Programming
    Replies: 17
    Last Post: 30th December 2010, 09:47
  2. like virtual keyboard?
    By triperzonak in forum Qt Programming
    Replies: 4
    Last Post: 10th July 2008, 17:42
  3. How to Launch Virtual Keyboard on top of TouchScreen
    By arunvv in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 21st June 2007, 19:31
  4. Virtual Keyboard on Qtopia 4.2.1
    By shapirlex in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 11th April 2007, 16:51
  5. virtual keyboard
    By sar_van81 in forum Qt Programming
    Replies: 5
    Last Post: 22nd December 2006, 14:40

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.