Qt5 opengl segmentation fault

Like I say above, avoid clicking the close button.