I can change titlebar hegiht and frame width using qstyle like this :
int MyStyle
::pixelMetric(PixelMetric which,
const QStyleOption *option,
const QWidget *widget
) const {
switch (which)
{
case PM_DefaultFrameWidth:
return 5;
case PM_TitleBarHeight:
return 50;
default:
}
}
int MyStyle::pixelMetric(PixelMetric which, const QStyleOption *option, const QWidget *widget) const
{
switch (which)
{
case PM_DefaultFrameWidth:
return 5;
case PM_TitleBarHeight:
return 50;
default:
return QWindowsStyle::pixelMetric(which, option, widget);
}
}
To copy to clipboard, switch view to plain text mode
but I want to change them using style sheet.
Is it possible?
I search method to change them using style sheet some hours, but I can't find.
Can I change titlebar height and frame width only using qstyle??
Bookmarks