[qt] format
[qt] macro abuse, WIP: organize drawPrimitive
[qt] WIP: organize drawPrimitive