码迷,mamicode.com
首页 > Windows程序 > 详细

QMainWindow::separator

时间:2017-05-30 18:14:07      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:ack   ace   style   com   styles   height   tac   idg   set   

setStyleSheet("QMainWindow::separator{ width: 0px; height: 0px; }");

这个我刚才查了是Qt Style Sheets,但这separator似乎在qt助手里面没有介找,源代码(头文件)里面我也没有看到有介绍

它是说自动在centralwidget和周围的dockwidget加一个4 pixel的可移动分格符,

https://stackoverflow.com/questions/42639743/qt-qdockwidget-adds-extra-margin-space
我试了很多其他的方法都不能把这个分格符去掉,
这个方法是可以的
是啊,中间的那个间隔太丑了

QMainWindow::separator

标签:ack   ace   style   com   styles   height   tac   idg   set   

原文地址:http://www.cnblogs.com/findumars/p/6920519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!