set a color-border of the QDockWidget
Unsolved
General and Desktop
-
-
@opengpu It should be fine i fell, as you are inheriting your class from
QDockWidget
andsetStyleSheet
is a public function.customClassObj->setStyleSheet("QDockWidget { " "border: 1px solid lightgray; " "titlebar-close-icon: url(close.png); " "titlebar-normal-icon: url(undock.png); " "}");
All the best.
-
@Pradeep-P-N
customClassObj->setStyleSheet("QDockWidget { border: 1px solid lightgray; }");
i tried this...not work.
and @constructor, setStyleSheet("QDockWidget { border: 1px solid lightgray; }");
also not work.
setStyleSheet("border: 1px solid lightgray;"); this work, but make everything on the DockWidget with the border -
@Pradeep-P-N said in set a color-border of the QDockWidget:
customClassObj->setStyleSheet("QDockWidget { " "border: 1px solid lightgray; " "titlebar-close-icon: url(close.png); " "titlebar-normal-icon: url(undock.png); " "}");
not work...donot know why...
myDockWidget->setStyleSheet("QDockWidget { "
"border: 5px solid red; "
"}");