Even if a system graphics api takes advantage of graphics acceleration, direct opengl programming is faster. The difference might be slight bud could also be significant, depending on the painted model.
One way to prove: painter vs. opengl in QGlWidget (QT5).