I've created two layouts, as is seen from code. Vertical layout is main layout, since in this layout in the upper region should be qglwidget, and beneath the qglwidget should be in horizontal layoout two push buttons.