fix is following - add m_shaderProgram.bind() in paintGL:
void GLWidget::paintGL() { m_shaderProgram.bind(); ...