Qt的UI布局以及控件间隔(Spacing)边距(Margins)

替一个Widget设置布局有两种方法。html 1layout 构造函数传递QWidget函数 QVBoxLayout* MainQVboxLayout=new QVBoxLayout(MainWidget); 布局 2layout构造函数传递NULL,调用QWidget的setlayout设置布局ui QVBoxLayout* MainQVboxLayout=new QVBoxLayout();
相关文章
相关标签/搜索