Modern C++20 Foundations, QObject Meta-Object Internals & Qt 6 Widgets

For: Embedded Linux, C/C++, and instrumentation engineers building Qt 6 HMIs

Architect, instrument, and verify leak-free ISO C++20 and Qt 6.8 Widgets HMIs from QObject meta-object internals through Model/View tables, QSaveFile persistence, custom QPainter gauges, and QTest suites.

18 lessons6 labs~16h 20mLinux 6.12Course 1 of 4 · Free Foundation

What you'll build

lab m0165 min

C++20 RAII Move Guards, Intrusive QObject Tree Cycles & deleteLater Sweep

Enforce strict ISO C++20 compilation, target-scoped CMake AUTOMOC/AUTOUIC/AUTORCC code generation, deterministic RAII versus QObject parent-child lifetimes, and hybrid virtual-boundary plus C++20 concept polymorphism.

learner@ksa: ~/gl-q01/lab-m01
learner@ksa:~/gl-q01/lab-m01./files/lab_clifd_closes=1 cycle_rejected=1 swept=1 destroyed=3learner@ksa:~/gl-q01/lab-m01
lab m0265 min

Packed Meta-String Table, void ** Metacall Router & Re-Entrant Disconnect

Master Qt 6 module boundaries, d_ptr/q_ptr binary compatibility, UTF-16LE QString and QByteArray atomic Copy-on-Write detach rules, uic setupUi() C++ generation, and moc QMetaObject string tables plus qt_static_metacall void** dispatch.

learner@ksa: ~/gl-q01/lab-m02
learner@ksa:~/gl-q01/lab-m02./files/lab_clistr_idx=1 rx_acc=427 scaled_ret=60learner@ksa:~/gl-q01/lab-m02
lab m0370 min

Cooperative Reactor Loop: Priority Events, LIFO Filters & Monotonic Timers

Eliminate dangling lambda slot crashes with 4-argument context-bound PMF connections, master synchronous sendEvent versus heap-queued postEvent compression and LIFO eventFilter interception, and schedule drift-free CLOCK_MONOTONIC timers without starving QPaintEvent.

learner@ksa: ~/gl-q01/lab-m03
learner@ksa:~/gl-q01/lab-m03./files/lab_clicoarse_50ms_us=2500 ticks=1 paints=1 work=2learner@ksa:~/gl-q01/lab-m03
lab m0470 min

1D/2D Box & Grid Layout Geometry Solver with Max-Cap Redistribution

Engineer interlock-safe Qt 6 button groups and touch targets, feedback-free QValidator and QSignalBlocker editors, and drift-free integer box/grid/form layout geometry solvers.

learner@ksa: ~/gl-q01/lab-m04
learner@ksa:~/gl-q01/lab-m04./files/lab_clibox_322px: [101, 101, 100] right_edge=312grid_430x100: col0_w=110 col1_x=130 col1_w=290learner@ksa:~/gl-q01/lab-m04
lab m0570 min

Bounded FaultTableModel, Persistent Selection & Sort/Filter Proxy

Bound multi-screen HMI memory via lazy container factories, replace O(R*C) item-widgets with contiguous QAbstractTableModel role projections, and wire zero-copy proxy views, QUndoStack, and delegates.

learner@ksa: ~/gl-q01/lab-m05
learner@ksa:~/gl-q01/lab-m05./files/lab_clitable_model: rows=1024 crit_proxy_rows=341 top_src=1021 top_code=E132learner@ksa:~/gl-q01/lab-m05
lab m0685 min

Atomic Calibration Store, ARGB32 Gauge Rasterizer & SignalSpy Harness

Persist HMI configuration crash-atomically via QSaveFile fsync-and-rename, composite premultiplied ARGB32 QPainter gauges and batched QtCharts waveforms, and automate headless offscreen QTest TAP 13 CI.

learner@ksa: ~/gl-q01/lab-m06
learner@ksa:~/gl-q01/lab-m06./files/lab_clicapstone_gauge: comp_kpa=430 alarms=1 center_argb=0xFFDC2626 wave_pts=3learner@ksa:~/gl-q01/lab-m06

Syllabus

gl-q01/

Prerequisites

  • requiredWorking fluency with ISO C or C++ types, pointers, structs/classes, and stack versus heap storage
  • requiredComfort with the Linux command line, g++ warning flags, and basic build directories
  • Bridged in M1–M3Pairs production Qt 6.8 LTS CMake/C++20 target code with deterministic ISO C++20 (g++ -std=c++20) host verification models (Modules 1–3)
  • Bridged in M4–M6Proves QObject parent-child ownership, moc QMetaObject void** dispatch, integer layout solvers, QAbstractTableModel roles, QSaveFile atomicity, and ARGB32 compositing (Modules 4–6)

Series map

  1. GL-Q01Modern C++20 Foundations, QObject Meta-Object Internals & Qt 6 Widgets — C++20 RAII/move & ownership, CMake AUTOMOC, moc QMetaObject dispatch, event loops/timers, box/grid layouts, Model/View roles, QPainter & QTest this course
  2. GL-Q02Qt 6 Threads, Network/Serial/CAN Buses, SQLite WAL & Cross-Target Packaging — GUI-thread affinity, worker moveToThread & SPSC rings, QTcpSocket/QUdpSocket/HTTP, sysfs/gpiod/evdev/PWM, QSerialPort/SocketCAN, SQLite3 WAL & CMake sysroots
  3. GL-Q03Qt Quick / QML Scene Graph, Wayland/DRM-KMS, Multimedia & Industrial HMI — QQmlApplicationEngine & QML_ELEMENT bindings, Controls 2/SwipeView/ListView pooling, QSGNode/QRhi batching, eglfs_kms & Wayland QPA, V4L2/ALSA & watchdog HMI
  4. GL-Q04Embedded OpenCV 4 Vision, USB Bluetooth, Voice/IoT & Video Surveillance Projects — ARMv7 NEON OpenCV 4 cross-builds & YUYV camera capture, BlueZ QtBluetooth RFCOMM, Smart-Home IoT gateways, 16 kHz WAV ASR, License-Plate OCR & UDP video streaming

Related live cohorts: EMB-100 · Embedded Linux: Toolchain to Product (live cohort) KRN-101 · Linux Systems & Kernel Foundations (live cohort)

Companion formats

Slide deck

16:9 review slides with terminal listings, diagrams, and speaker notes.

Reference handbook

Printable HTML and PDF engineering reference covering every module and UAPI.

Flashcards

Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.

Kernel Systems Academy engineering studio

Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.

Frequently asked questions

Can I study this course offline from disk?

Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.

How are the hands-on labs graded?

Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.

What is included in the free preview?

Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.

search — fzf

0/0 ───────────────────────────────────────────

keyboard shortcuts — less

/
search
f
focus mode
[
previous
]
next
?
help
Esc
close

figure