Writing Custom Styles with QStyle
Presented by: Trenton Schulz
A tour through the QStyle API
Qt's style engine (QStyle) handles widget painting and many look and feel elements. This session provides a tour through the QStyle API, and examines when and where to use it. We will also look at some tips, tricks, and guidelines for writing your own custom styles.
Agenda:
The How, What and Why of QStyle
QStyle Concepts
Typical QStyle method
QStyleOption
QStyleOption Subclass
Updated Implementation
A Tour of the QStyle API
Drawing helper functions
Rectangle functions
Hit testing
Metrics and Sizes
Style hints
Icon/Pixmap functions
Polishing functions
Logical vs. Visual in Left-to-Right
Static functions
Right-to-Left languages
Brief Styling Example
Examples
Tips and Tricks
Conclusion