PDA

View Full Version : C++ method equiv of stylesheet border: 0px;



RolandHughes
19th February 2014, 23:48
All,

Looking for the method/function for a QWidget which does the same thing as this stylesheet

QWidget
{
border: 0px;
}

CANNOT use stylesheets they are waaaaaaaaaaaaaaaaaaay too slow. There has to be a method I can call directly, but I cannot find it.

Thanks,

ChrisW67
19th February 2014, 23:55
A QWidget has no border by default. If you are wanting to turn off a border on a QFrame (or derived class) then you have QFrame::setFrameStyle() (with QFrame::NoFrame) and the various frame and line width properties of that class.