Beautiful & Blazing-Fast Graphics with Qt
summary
Shows concrete recipes that convert static screenshots into glossy, perspective-reflected previews using QImage::mirror, QLinearGradient, setOpacity and QTransform for perspective; implements blur by direct pixel convolution and accelerates pixel loops with QImage::bits/scanLine and by transposing data to exploit CPU cache (transpose scanlines). Recommends ARGB32 premultiplied to avoid per-pixel multiplies, lazy loading + pre-rendered “surface” reflections to cut runtime work, a cheat scaling (fast then smooth) that is ~15× faster, and OpenGL via QGLWidget/GraphicsView; profiles with valgrind/callgrind or Shark.
AI-written summary · about
chapters (52)
- 0:00Intro
- 0:14Ariya Hidayat
- 0:48Agenda
- 1:48In A Simpler Term...
- 2:13By Examples
- 2:32Blazing Fast. How?
- 2:46Avoid Slow Operations
- 3:06Don't Assume. Measure!
- 3:51Composing Screenshots
- 9:18More Natural Look
- 10:19Translucent Reflection
- 10:49QTransform: For Scaling
- 11:11QTransform: For Rotation
- 11:25QTransform: For Perspective Transformation
- 12:08Works (Almost) Everywhere
- 12:33Blurred Reflection
- 13:26Pixel Manipulation: QImage
- 14:49Faster: Skip setPixell & pixell
- 18:42Pixel Shifting
- 20:28Which Image Format?
- 22:40Alpha-Blending
- 23:48Careful with Depth
- 26:27Ray Casting
- 31:01DIY (Do It Yourself)
- 33:25Cache Friendly
- 36:13QPainter Composition Mode
- 37:07More Interesting Composition Modes
- 37:35Composition Mode: Multiply
- 38:02Composition Mode: Screen
- 39:03Bloom Effect
- 41:55From Colorful Image...
- 42:36Tint Effect
- 43:33Grayscale Effect
- 44:35About Color: HSL vs HSV
- 46:12HSV to HSL Conversion
- 47:57Widgets on Graphics View with OpenGL
- 48:53Avoid Path Operations
- 50:43Approximate It!
- 52:31Beware of Mouse Events
- 53:17Moving Items
- 54:13Avoid Anti-aliased Painting
- 55:02Thumbnail Preview
- 55:22Image Scaling
- 55:39800% Zoomed
- 56:04Let's Cheat
- 56:16Qt::Cheat Transformation
- 56:51Useful Widget Attributes
- 57:18Try to Minimize Overdraw
- 58:06Use Qt Falcon!
- 58:26OpenGL for Mortals
- 58:54Other Goodies
- 59:46Summary
