# class KPopupFrame

###

Module | kdeui
Namespace |
Class | KPopupFrame
Inherits | QFrame

Frame with popup menu behavior. Author Tim Gilman, Mirko Boehm

### methods

- KPopupFrame (parent)

  returns ctor

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

  The contructor. Creates a dialog without buttons.

- KPopupFrame (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KPopupFrame |

- close (r)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  r | int |

  Close the popup window. This is called from the main widget, usually. r is the result returned from exec().

- exec (p)

  returns int

  Argument | Type | Default
  --- | --- | ---
  p | QPoint |

  Execute the popup window.

- exec (x, y)

  returns int

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

  Execute the popup window.

- keyPressEvent (e)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  e | QKeyEvent |

  Catch key press events.

- leaveModality ( )

  returns Nothing
  SIGNAL ("leaveModality ()")

- popup (pos)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  pos | QPoint |

  Open the popup window at position pos.

- resizeEvent (resize)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  resize | QResizeEvent |

  The resize event. Simply resizes the main widget to the whole widgets client size.

- setMainWidget (m)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  m | QWidget |

  Set the main widget. You cannot set the main widget from the constructor, since it must be a child of the frame itselfes. Be careful: the size is set to the main widgets size. It is up to you to set the main widgets correct size before setting it as the main widget.