Solved Widget Styling
-
Hello everyone,
When I add a border to a widget with stylesheet, it adds it around each object (e.g. label). Is there anyway to get around this?
Thanks
Here is the code I am currently using:newWidget1->setStyleSheet(QString::fromUtf8( "border-radius: 5px;" "border: 1px solid black;" "border: 2px solid black;" ""));
-
You can specify the object type where the style should be applied to. See the documentation.
-
Perfect. Thank you