Difference between revisions of "HIP:LittleFe Touchscreen qt Interface"
(New page: =Touchscreen qt interface= I have successfully built a qt interface for GalaxSee using qt designer. the current versions are located in svn. When the binary is executed, the window fits p...) |
(→Touchscreen qt interface) |
||
Line 5: | Line 5: | ||
To get started editing these files and building new interfaces for new applications, you must download '''designer-qt3''' | To get started editing these files and building new interfaces for new applications, you must download '''designer-qt3''' | ||
− | |||
− | + | <pre>apt-get install designer-qt3</pre> | |
− | To assign a signal handler (a callback} first click on the object for which you want to assign a handler. Look on the left side of the screen. There will be a | + | |
+ | Note, this is not the latest version, version 4, because version three includes a c++ editor in the designer window. I felt this was the easiest way to get things working, and since my interface needs at this time are pretty minimal, the additional features of version 4 were not needed. | ||
+ | |||
+ | Qt designer has a few different modes. The interface builder allows the user to manipulate window primitives and achieve appropriate look and feel. Once the window objects, such as sliders, text boxes and buttons are properly arranged, signal handlers must be assigned. | ||
+ | |||
+ | To assign a signal handler (a callback} first click on the object for which you want to assign a handler. Look on the left side of the screen. There will be a properties inspector window. This allows you to change the various attributes of the window primitive. The next tab is the signal handlers tab. from this tab, double-click on the event you want to attach code to. For a button, this will probably refer to the release callback. The IDE will create a stub for you, and will assign that stub to the respective object and event. |
Revision as of 09:25, 20 May 2009
Touchscreen qt interface
I have successfully built a qt interface for GalaxSee using qt designer. the current versions are located in svn. When the binary is executed, the window fits perfectly on the touchscreen display at 64O x 48O resolution.
To get started editing these files and building new interfaces for new applications, you must download designer-qt3
apt-get install designer-qt3
Note, this is not the latest version, version 4, because version three includes a c++ editor in the designer window. I felt this was the easiest way to get things working, and since my interface needs at this time are pretty minimal, the additional features of version 4 were not needed.
Qt designer has a few different modes. The interface builder allows the user to manipulate window primitives and achieve appropriate look and feel. Once the window objects, such as sliders, text boxes and buttons are properly arranged, signal handlers must be assigned.
To assign a signal handler (a callback} first click on the object for which you want to assign a handler. Look on the left side of the screen. There will be a properties inspector window. This allows you to change the various attributes of the window primitive. The next tab is the signal handlers tab. from this tab, double-click on the event you want to attach code to. For a button, this will probably refer to the release callback. The IDE will create a stub for you, and will assign that stub to the respective object and event.