Fix debug logging of GL Version; use categorized logging
At least in recent Qt version the version can be only queried in QOpenGLWidget::initializeGL(), not already in the constructor.
Also only print via Qt's logging mechanism, not always by printf.
Would backport to release branch, due to current "nullptr" output.