How to make new widgets fill available space?

前端 未结 1 400
半阙折子戏
半阙折子戏 2021-01-27 05:37

I am having some trouble making a new QT widget fill all the available space.

I want to add a widget (a QGLWidget) to the verticle layout (mVisual) and hav

1条回答
  •  时光说笑
    2021-01-27 05:56

    if you put your widget in a Layout, widget fill all available space in their parent area, and if you want to fill without margins, set Layout margins to 0.

    0 讨论(0)
提交回复
热议问题