It was a bug.

Here is the snapshot if anyone needs a help with this kind of issue.

qpaintengine_alpha.cpp

Works in 5.2.1 from what I tested.