A Qt engineer explores C++26 reflection and annotations during a company hackathon, implementing support for plain C++ classes in QRangeModel without requiring moc-generated code. The implementation uses the new reflection operator (^^), splice operator ([::]), and structured binding packs to automatically expose class members
•20m read time• From qt.io
Table of contents
Cooking with QRangeModelSharpening the knivesMise en placeSpecializing for AggregatesReflection with AnnotationsSort: