Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Configuring QNX Touch Screen with QT: (5 Items)
   
Configuring QNX Touch Screen with QT  
Hi,

I know how to configure QNX Touch Screen Driver of eGalax with Photon and was able to work with it fine.

But, now I have change my environment to Qt for the same application where touch is required. 

So, could any one help me with the step by step procedure to configure QNX6.5 Touch Screen for Qt 4 and QNX 6.6 Touch 
Screen for Qt 5.3

Thanks in Advance. 

Best Regards.

Dinakar.
Associations:
post111757:
              Re: Configuring QNX Touch Screen with QT - Hi,

Yes, Touch is working in Photon. But, we are not able to get touch working in Qt. 

Our set up is something different. Actually, system which we have is pre-configured with Touch Screen .

As per our observation, Touch screen driver is appears to be binded with input.localhost file under /etc/system/trap. 

Because, by default, Touch driver will start by invoking the command in the input.localhost . If we comment the driver command in input.localhost, touch driver does not start. Even after starting the driver manually also, touch is not working. 

As per the above points, Touch driver starts only when driver command in input.localhost executes. This file is being invoked by Photon server. So, to run Qt Applicaitons, we need to be in Shell Mode which does not invoke driver command in input.localhost file. 

So, finally, touch driver does not work even after we run manually also. Could you please help me with on how can run touch driver without photon in Shell mode for Qt.

-Thank You. - Dinakar Babu(deleted)
            
Re: Configuring QNX Touch Screen with QT  
Which kind of help do you need? There are mandatory settings to configure in Qt for this. If touch works on target 
natively, it will work in any Qt app as well. The only thing to care of is to make sure that Qt knows how  is the 
physical display surface. Usually, the QNX Screen reports this, but in some instances it does not. In those cases you 
have to set QQNX_PHYSICAL_SCREEN_SIZE env var with according values, see https://qt-project.org/wiki/QNX-App-development
-and-deployment. Anyway, as mentioned, touch would work without this as well. For touch, it is a nice to have, but it 
also improves they way how well fonts are scaled to the display sizes. Additionally, you should keep in mind that touch 
is not the same as mouse ;-) See http://qt-project.org/doc/qt-5/qtouchevent.html
Re: Configuring QNX Touch Screen with QT  
Qt4

If already working for photon (assuming x86) and your panel is HID-compliant, enter these commands from external 
terminal or telnet session (console keyboard will no longer work)

# export QWS_DISPLAY=qnx
# export QWS_KEYBOARD=qnx
# export QWS_MOUSE_PROTO=qnx
# /usr/photon/bin/devi-hid -Pr kbd touch
# ./myQt4Prog -qws

You can replace "touch" with "mouse" to verify mouse works.

If your touch is not HID-compliant, try something like this...
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20923?_pagenum=4
(you still need the exports)
Associations:
post111755:
              Configuring QNX Touch Screen with QT - Hi,

Yes, Touch is working in Photon. But, we are not able to get touch working in Qt. 

Our set up is something different. Actually, system which we have is pre-configured with Touch Screen .

As per our observation, Touch screen driver is appears to be binded with input.localhost file under /etc/system/trap. 

Because, by default, Touch driver will start by invoking the command in the input.localhost . If we comment the driver command in input.localhost, touch driver does not start. Even after starting the driver manually also, touch is not working. 

As per the above points, Touch driver starts only when driver command in input.localhost executes. This file is being invoked by Photon server. So, to run Qt Applicaitons, we need to be in Shell Mode which does not invoke driver command in input.localhost file. 

So, finally, touch driver does not work even after we run manually also. Could you please help me with on how can run touch driver without photon in Shell mode for Qt.

-Thank You. - Dinakar Babu(deleted)
            
Re: Configuring QNX Touch Screen with QT  
It also depends if Qt4 has been build supporting QWS or not. More details on this are available under:
http://qt-project.org/doc/qt-4.8/qt-embedded-running.html
and
http://qt-project.org/doc/qt-4.8/qt-embedded-displaymanagement.html

Generally, QWS has been discontinued with Qt 4.8 even though it is still in the code. From 4.8 on, the QPA architecture 
shall be used, and Qt5 does not support QWS (Qt Windowing System) anymore and requires a Screen package on QNX
Re: Configuring QNX Touch Screen with QT  
 Hi,

Yes, Touch is working in Photon. But, we are not able to get touch working in Qt. 

Our set up is something different. Actually, system which we have is pre-configured with Touch Screen .

As per our observation, Touch screen driver is appears to be binded with input.localhost file under /etc/system/trap. 

Because, by default, Touch driver will start by invoking the command in the input.localhost . If we comment the driver 
command in input.localhost, touch driver does not start. Even after starting the driver manually also, touch is not 
working. 

As per the above points, Touch driver starts only when driver command in input.localhost executes. This file is being 
invoked by Photon server. So, to run Qt Applicaitons, we need to be in Shell Mode which does not invoke driver command 
in input.localhost file. 

So, finally, touch driver does not work even after we run manually also. Could you please help me with on how can run 
touch driver without photon in Shell mode for Qt.