Yes it's possible The ::title subcontrol can be used to customize the title bar.
Like this :-
@QDockWidget::title
{
font-family: "Roboto Lt";
font-size: 18pt;
background: lightgray;
padding-left: 10px;
padding-top: 4px;
}@
@Eslam mahgoub
While ::title sub-control works for borders, background-color and other box properties the text itself is styled with QDockWidget{}, without the ::title.