i want to change menu item's height,but the code didnot work.i don't know how to use PixelMetric.
Qt Code:
  1. int Mstyle::pixelMetric(PixelMetric which, const QStyleOption* option, const QWidget * widget) const
  2. {
  3. switch(which)
  4. {
  5. case PM_MenuHMargin:
  6. return 40;
  7. case PM_MenuVMargin:
  8. return 40;
  9. default:
  10. return QWindowsStyle::pixelMetric(which,option,widget);
  11. }
  12. }
To copy to clipboard, switch view to plain text mode