I use the following code:
int SWStyle::pixelMetric( PixelMetric which, const QStyleOption *option, const QWidget *widget ) const
{
switch (which)
{
case PM_DefaultFrameWidth:
return 1;
case PM_TitleBarHeight:
return 80;
default:
return QCleanlooksStyle::pixelMetric(which, option, widget);
}
}
--------------------------------------------
myQdockWidget->setStyle(new SWStyle);
to change the height of title bar, but it doesn't work, it can change frame width.
could title bar height of QDockWidget be changed?