赞
踩
我常用QFrame作为分隔线,Qframe的基类是QWidget,直接使用宽度不为1,又忘了怎么让它宽度变成1了,记一下
QFrame* line = new QFrame;
line->setFixedWidth(1);
line->setFrameShape(QFrame::VLine);
line->setStyleSheet("background:red;");
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。