Date post: | 12-May-2015 |
Category: |
Technology |
Upload: | qt-project |
View: | 1,509 times |
Download: | 0 times |
The Touch of TasteDo you speak coffee? HGZ Kaffemaschinen
The Touch of Taste - Agenda
• Why Qt
– signal-and-slots
– linguist tool
– layout manager
• Retrospection
– app design: UI, PD, SI
– platform-independent development
• Conclusions
2
A simple button…
Multimedia touch driven coffee machine
Signal and Slots
The 'signal and slots' mechanism is a save and easy solution for the normally complex inter object data exchange. And gives a condensed overview of the defined interface.
Qt Linguist by Trolltech (Nokia)
Layout Manager
• QHBoxLayout Class
• QVBoxLayout Class
• QGridLayout Class
Layout Manager - configuration
• exact positioningvoid QGridLayout::setRowMinimumHeight ( int row, int minSize ) Sets the minimum height of row row to minSize pixels.See also rowMinimumHeight() and setColumnMinimumWidth().
• flexible positioningvoid QGridLayout::setRowStretch ( int row, int stretch ) Sets the stretch factor of row row to stretch. The first row is number 0.The stretch factor is relative to the other rows in this grid. Rows with a higher stretch factor take more of the available space.The default stretch factor is 0. If the stretch factor is 0 and no other row in this table can grow at all, the row may still grow.See also rowStretch(), setRowMinimumHeight(), and setColumnStretch().
HGZ Touch Application Design
Platform-independent development
• Your application will run across all „supported“ Qt
platforms, if... all Qt-features and calls are supported by
the hardware. This was our biggest drawback.
– Buggy mouse handler
– Floating point calculations led to kernel exceptions
– Embedded Linux without GStreamer to execute multimedia
Conclusions
• Qt's development framework– huge variety of objects or structures ready to use or easily to configure
– 'signals and slots' mechanism is a save and easy solution for
communication, and results in good quality of code and so reduces the
time-consuming debugging and error detection
– Qt‘s translation concept in combination with their layout manager is a
powerful instrument
– Qt's instant support, good documentation of the classes in the
framework and worldwide fan community is a source for new ideas
We care about coffee and milk
• Thanks for listening!
www.hgz.ch