[Qt-creator] How to take inputs from two keybaords for different dialog boxes

Navneet Kataria ennavneet at yahoo.com
Fri May 11 12:38:34 CEST 2012






Hello,
 
I got the solution for Linux. Now how to do it using Qt ?
 
Actually I tried xinput as mentioned in the article :->
https://www.linux.com/learn/tutorials/542356-weekend-project-zap-your-coworkers-minds-with-multi-pointer-x
 
I got two pointers for two mouse and two keyboards as master. I opened two terminals and was able to type on both of them using different keyboards.
 
Now the problem is that How to give support of using two different keboards in one Qt application. 
I can use them in two different processes without any problem, but how to use them in one single process ?

Can any-body help ?
 
__________________
Thanks and Regards,
Navneet Kataria

--- On Thu, 10/5/12, Navneet Kataria <ennavneet at yahoo.com> wrote:


From: Navneet Kataria <ennavneet at yahoo.com>
Subject: RE: [Qt-creator] How to take inputs from two keybaords for different dialog boxes
To: "Atlant Schmidt" <aschmidt at dekaresearch.com>
Date: Thursday, 10 May, 2012, 4:20 PM







Ahh!!
 
May be, I got it !! First I have to distigish the two keyboards, then-only I can proceed to the main problem (if it remains). 
 
Thanks Atlant ! 
I will get back to this thread after trying the above suggestion !

_________________
Thanks and Regards,
Navneet Kataria

--- On Thu, 10/5/12, Atlant Schmidt <aschmidt at dekaresearch.com> wrote:


From: Atlant Schmidt <aschmidt at dekaresearch.com>
Subject: RE: [Qt-creator] How to take inputs from two keybaords for different dialog boxes
To: "'Navneet Kataria'" <ennavneet at yahoo.com>, "qt-creator at qt-project.org" <qt-creator at qt-project.org>
Date: Thursday, 10 May, 2012, 4:03 PM









Navneet:
 

  This sounds like a Linux problem rather than a Qt problem.


  Isn’t it the Linux Keyboard Driver that’s effectively “pairing”
  the keyboards? That is, by the time Qt gets the I/O, the
  input from the two keyboards is already deliberately
  indistinguishable.

  There’s probably already some Linux setup parameter
  somewhere that can un-do this, or, as is always true, if
  the feature isn’t already there, you can hack the Linux
  drivers. 
  
  This page seems to be a nice general reference: 
  
    http://gunnarwrobel.de/wiki/Linux-and-the-keyboard.html 
  
  This page seems to go pretty directly to your question: 
  
    http://linuxgazette.net/124/smith.html 
  
  Together, they may give you some ideas. Once the Linux problem
  is solved, *THEN* it can become a Qt problem. 
  
                                             Atlant 
  

From: qt-creator-bounces+aschmidt=dekaresearch.com at qt-project.org [mailto:qt-creator-bounces+aschmidt=dekaresearch.com at qt-project.org] On Behalf Of Navneet Kataria
Sent: Thursday, May 10, 2012 05:52
To: qt-creator at qt-project.org
Subject: [Qt-creator] How to take inputs from two keybaords for different dialog boxes
  





Hello All,

 

I am using Qt from some-time now. But stuck with one requirement as explained below. Can any-body help me in this regard ?

 

I need to connect two keyboards to one Linux machine running a Qt desktop application.

 

When I inserted two keyboards in the system, they were working well. But the problem is that they are working as one.

 

I am developing an application using Qt 4, which contains two text-areas in two different simulatenously opened different dialog boxes. I want to use different keyboards for both text-areas. I mean, I want to use Key-board-1 to input text in TextArea1 and Key-board-2 to input text in TextArea2.

 

Is it possible ?

 

 


_________________
Thanks and Regards,
Navneet Kataria
  
Click here to report this email as spam.


This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120511/72a8938c/attachment.html>


More information about the Qt-creator mailing list