# class KPageWidget

###

Module | kdeui
Namespace |
Class | KPageWidget
Inherits | KPageView

Page widget with many layouts (faces).

See also KPageView with hierarchical page model.

Author Tobias Koenig (tokoe@kde.org)

### methods

- KPageWidget (parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Creates a new page widget.

  parent - The parent widget.

- KPageWidget (dd, parent)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  dd | KPageWidgetPrivate |
  parent | QWidget |

- KPageWidget (a0)

  returns ctor
  before KDE 4.1.0 only

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

- addPage (widget, name)

  returns KPageWidgetItem

  Argument | Type | Default
  --- | --- | ---
  widget | QWidget |
  name | QString |

  Adds a new top level page to the widget.

  widget - The widget of the page.

  name - The name which is displayed in the navigation view.

  Returns The associated

  See also KPageWidgetItem.

- addPage (item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  item | KPageWidgetItem |

  Adds a new top level page to the widget.

  item - The

  See also KPageWidgetItem which describes the page.

- addSubPage (parent, widget, name)

  returns KPageWidgetItem

  Argument | Type | Default
  --- | --- | ---
  parent | KPageWidgetItem |
  widget | QWidget |
  name | QString |

  Inserts a new sub page in the widget.

  parent - The new page will be insert as child of this

  See also KPageWidgetItem.

  widget - The widget of the page.

  name - The name which is displayed in the navigation view.

  Returns The associated

  See also KPageWidgetItem.

- addSubPage (parent, item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  parent | KPageWidgetItem |
  item | KPageWidgetItem |

  Inserts a new sub page in the widget.

  parent - The new page will be insert as child of this

  See also KPageWidgetItem.

  item - The

  See also KPageWidgetItem which describes the page.

- currentPage ( )

  returns KPageWidgetItem

  Returns the

  See also KPageWidgetItem for the current page or 0 if there is no current page.

- currentPageChanged (current, before)

  returns Nothing
  SIGNAL ("currentPageChanged (KPageWidgetItem*, KPageWidgetItem*)")

  Argument | Type | Default
  --- | --- | ---
  current | KPageWidgetItem |
  before | KPageWidgetItem |

  This signal is emitted whenever the current page has changed.

  item - The new current page or 0 if no current page is available.

- insertPage (before, widget, name)

  returns KPageWidgetItem

  Argument | Type | Default
  --- | --- | ---
  before | KPageWidgetItem |
  widget | QWidget |
  name | QString |

  Inserts a new page in the widget.

  before - The new page will be insert before this

  See also KPageWidgetItem on the same level in hierarchy.

  widget - The widget of the page.

  name - The name which is displayed in the navigation view.

  Returns The associated

  See also KPageWidgetItem.

- insertPage (before, item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  before | KPageWidgetItem |
  item | KPageWidgetItem |

  Inserts a new page in the widget.

  before - The new page will be insert before this

  See also KPageWidgetItem on the same level in hierarchy.

  item - The

  See also KPageWidgetItem which describes the page.

- pageRemoved (page)

  returns Nothing
  SIGNAL ("pageRemoved (KPageWidgetItem*)")

  Argument | Type | Default
  --- | --- | ---
  page | KPageWidgetItem |

  This signal is emitted when a page is removed.

  page - The page which is removed

- pageToggled (page, checked)

  returns Nothing
  SIGNAL ("pageToggled (KPageWidgetItem*, bool)")

  Argument | Type | Default
  --- | --- | ---
  page | KPageWidgetItem |
  checked | bool |

  This signal is emitted whenever a checkable page changes its state. checked - is true when the page - is checked, or false if the page - is unchecked.

- removePage (item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  item | KPageWidgetItem |

  Removes the page associated with the given

  See also KPageWidgetItem.

- setCurrentPage (item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  item | KPageWidgetItem |

  Sets the page which is associated with the given

  See also KPageWidgetItem to be the current page and emits the currentPageChanged() signal.