I meant that if you never called
setDesignResolutionSize(), then your design resolution is equal to the frame size and
And if you use
glview->setDesignResolutionSize(frameSize.width, frameSize.height, ResolutionPolicy::NO_BORDER), then even though you specified a policy, it is like you did not specify anything in the end. The result is the same.
In the end, you can delete that block of code, nothing will change.