I have following style sheet set for QDockWidgets in my QT app. All the things mentioned in the style are working except for the font. Why is "font" is not detected & how could I change the font & size of QDockWidget title ?
QDockWidget::title
{
    font: 18pt "Roboto Lt";
    background: lightgray;
    padding-left: 10px; 
    padding-top: 4px;
}
Font should be applied to the QDockWidget itself, not to the sub-control ::title
QDockWidget { font-family: "Roboto Lt"; font-size: 18pt; }
Watch the font part in the Qt Reference: http://doc.qt.digia.com/qt/stylesheet-reference.html
Maybe you should try:
QDockWidget::title
{
   font-family: "Roboto Lt";
   font-size: 18pt;
   background: lightgray;
   padding-left: 10px; 
   padding-top: 4px;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With