# class KMenuBar

###

Module | kdeui
Namespace |
Class | KMenuBar
Inherits | QMenuBar

%KDE Style-able menubar.

This is required since QMenuBar is currently not handled by QStyle.

Author Daniel "Mosfet" Duley.

### methods

- KMenuBar (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

- KMenuBar (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- closeEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QCloseEvent |

- eventFilter (a0, a1)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |
  a1 | QEvent |

- isTopLevelMenu ( )

  returns bool

  Is our menubar a top-level (Macintosh style) menubar?

  Returns True if it is top-level.

- paintEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QPaintEvent |

- resize (w, h)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  w | int |
  h | int |

- resize (s)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  s | QSize |

- resizeEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QResizeEvent |

- setFrameStyle (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setGeometry (r)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  r | QRect |

- setGeometry (x, y, w, h)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  x | int |
  y | int |
  w | int |
  h | int |

- setLineWidth (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setMargin (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setTopLevelMenu (top_level)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  top_level | bool | 1

  This controls whether or not this menubar will be a top-level bar similar to the way Macintosh handles menubars. This overrides any global config settings.

  Keep in mind that it is probably a really bad idea to use this unless you really know what you're doing. A feature like a top-level menubar is one that should really be shared by all applications. If your app is the only one with a top-level bar, then things might look very... odd.

  This is included only for those people that do know that they need to use it.

  top_level - If set to true, then this menubar will be a top-level menu

- sizeHint ( )

  returns QSize

- slotReadConfig ( )

  returns Nothing

- x11Event (a0)

  returns bool
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | XEvent |