You can use QPainter on a QGLWidget, it can still offer a considerable boost.
Alternatively, you can implement your own QQuickItem with custom geometry nodes and easily implement both 2d and 3d tetris elements by using standard openGL approaches towards constructing geometry.