【Qt开发】布局控件之间的间距设置
来源:互联网 发布:淘宝宝贝销量查询工具 编辑:程序博客网 时间:2024/06/05 17:14
void QLayout::setContentsMargins ( int left, int top, int right, int bottom )
Sets the left, top, right, and bottom margins to use around the layout.
By default, QLayout uses the values provided by the style. On most platforms, the margin is 11 pixels in all directions.
This function was introduced in Qt 4.3.
这个说默认有11像素的间隙。
测试不行。
//hlayout->setContentsMargins(0,0,0,0);
//hlayout->setContentsMargins(QMargins(0,0,0,0));
主要通过setMargin(0) 设置Layout 的外部边界为0
hlayout->addWidget(start);
hlayout->addWidget(settle);
hlayout->addWidget(treatement);
hlayout->addWidget(final);
//hlayout->setStretchFactor(hlayout,0);
hlayout->setMargin(0);
//hlayout->setContentsMargins(0,0,0,0);
//hlayout->setContentsMargins(QMargins(0,0,0,0));
hlayout->setSpacing(0);
//这个设置成功
0 0
- 【Qt开发】布局控件之间的间距设置
- Qt布局管理之设置控件之间的间距
- Qt布局管理之设置控件之间的间距
- Qt布局经管之设置控件之间的间距
- ExtJs中table布局如何设置items之间的间距
- ios软件开发 设置cell之间的间距
- 设置tableViewCell之间的间距
- beamer 中设置 item 之间的间距
- 设置自定义UITableViewCell之间的间距
- 设置RecyclerView项目之间的间距
- 设置自定义UITableViewCell之间的间距
- 设置自定义UITableViewCell之间的间距
- javaSwing 设置每个组件之间的间距
- 设置RecyclerView项目之间的间距
- 设置UITableView section之间的间距
- iOS-OC-设置UITableViewCell之间的间距
- RecyclerView 设置item之间的间距
- gridview设置两行之间的间距
- 华为网络设备常用命令
- UVA 10815 set
- Android Studio JNI生成so库
- Linux进程间通信(五)
- html5圆形渐变
- 【Qt开发】布局控件之间的间距设置
- ANDROID “call to opengl es api with no current context”错误的解决
- spring mvc与spring注解配置 说明
- js Ajax配合THINKPHP上传多个文件
- java xml配合实现读取配置文件登陆
- maven添加本地jar包
- 深入分析JAVA WEB技术内幕笔记——java web编解码
- treeSet 对于对象的有序添加
- 《Go语言编程》 笔记