Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qt UI example utilizing pps: (4 Items)
   
Qt UI example utilizing pps  
HVAC 'thermostat' UI interfaces with a QNX pps datasource.  In addition to presenting a working pps example, the project
 also shows Qt thread creationm plus how to remove the "window-frame" from your application.
Attachment: Text qTstat.tar 1.27 MB
Re: Qt UI example utilizing pps  
PD documentation
Attachment: PDF qTstat.pdf 354.81 KB
Re: Qt UI example utilizing pps  
The attached file provides the Qt runtime subset  required for the qTstat application using the VMware runtime image for
 QNX 6.5  (http://www.qnx.com/download/feature.html?programid=21189).

1.  Start the VMware image.  It will come up to photon.  Start a terminal.
2.  Run "passwd" and set a password for root.
3.  Edit /etc/ftpusers.  Change "root deny" to "root allow"
4.  Run "ifconfig" and note the ip address of QNX vm.

5.  From windows commandline, change directory to the location of "qnx_rtlibs.zip" and qTstat.tar attachments.
6.  Run "ftp x.x.x.x" specifying the ip address of QNX.  Login with "root" and password you set above.  
7.  Enter ftp command "cd /" and ftp command "bin"
8.  Enter "put qnx_rtlibs.zip"  
9.  Enter "put qTstat.tar" -  then enter "quit".

10. From VMware, shutdown photon to text-mode.  (Use the "Launch" button.)

11. From windows, "telnet x.x.x.x" and login as root with password.
12. cd / and run "unzip qnx_rtlibs.zip" to populate runtime environment.
13. Also from /, run "tar -xvf qTstat.tar" to create a directory /qTstat
14. Start pps as "pps".
15. Start simulation as "/qTstat/bin/tdpps -i /tmp"
16. cd to /qTstat - this is important so Qt finds "content"!
16  Run ./qTstat -qws
16. Start Qt application as "/qTstat/qTstat -qws"

Hope I didn't miss any steps...
Dennis
Attachment: Compressed file qt_rtlibs.zip 14.27 MB
Re: Qt UI example utilizing pps  
Attached is an alternate "skin" for the thermostat UI of this example.  The new format is horizontal (rather than 
vertical) and is scaled to 800x480, matching the LCD panel for the i.mx53 QSB.

It is only necessary to rename the previous "content" directory and recreate the "content" directory from this .zip file
.  Then you must then restart the Qt binary 'qTstat'.

Notice that with QtDeclarative, it is not necessary to even change the UI binary to re-skin your application!   We are 
only changing the runtime "script" and its assets.  (Of course to make this work, the new script must resolve the same 
symbolic names for the signal and slots.)
Attachment: Compressed file qTstat_content.zip 506.58 KB