Update:
I think I nailed it, hinted by this post.
So I subclassed QProxyStyle as AndroidStyle and reimplemented QProxyStyle::pixelMetric this way:
int AndroidStyle::pixelMetric(PixelMetric which,
{
int metric = QProxyStyle::pixelMetric(which, option, widget);
switch (which) {
case PM_IndicatorWidth:
case PM_IndicatorHeight:
return 2*metric;
default:
return metric;
}
}
int AndroidStyle::pixelMetric(PixelMetric which,
const QStyleOption *option,
const QWidget *widget) const
{
int metric = QProxyStyle::pixelMetric(which, option, widget);
switch (which) {
case PM_IndicatorWidth:
case PM_IndicatorHeight:
return 2*metric;
default:
return metric;
}
}
To copy to clipboard, switch view to plain text mode
and I set this style in the main function like this:
a.setStyle(new AndroidStyle);
QApplication a(argc, argv);
a.setStyle(new AndroidStyle);
To copy to clipboard, switch view to plain text mode
Bookmarks