My initial problem was to make QDockWidget title bold. I tried this and it worked:
myDock->setStyleSheet("QDockWidget { font: bold }");
But I can't understand why the following code doesn't work:
myDock->setStyleSheet("QDockWidget::title { font: bold }";
Even if I use more complicated style sheet, every parameter of it has effect except for font: bold
:
myDock->setStyleSheet("QDockWidget::title { font: bold;
text-align: left;
background: red;
padding-left: 30px; }");
What is the problem with QDockWidget::title font?