# class KToggleFullScreenAction

###

Module | kdeui
Namespace |
Class | KToggleFullScreenAction
Inherits | KToggleAction

An action for switching between to/from full screen mode. Note that QWidget.isFullScreen() may reflect the new or the old state depending on how the action was triggered (by the application or from the window manager). Also don't try to track the window state yourself. Rely on this action's state (isChecked()) instead.

Important: If you need to set/change the fullscreen state manually, use KToggleFullScreenAction.setFullScreen() or a similar function, do not call directly the slot connected to the toggled() signal. The slot still needs to explicitly set the window state though.

Note: Do NOT use QWidget.showFullScreen() or QWidget.showNormal(). They have several side-effects besides just switching the fullscreen state (for example, showNormal() resets all window states, not just fullscreen). Use the KToggleFullScreenAction.setFullScreen() helper function.

### methods

- KToggleFullScreenAction (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |

  Create a KToggleFullScreenAction. Call setWindow() to associate this action with a window.

  parent - This action's parent object.

- KToggleFullScreenAction (window, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  window | QWidget |
  parent | QObject |

  Create a KToggleFullScreenAction

  window - the window that will switch to/from full screen mode

  parent - This action's parent object.

- KToggleFullScreenAction (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- eventFilter (object, event)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  object | QObject |
  event | QEvent |

- setFullScreen (window, set)

  returns Nothing
  static

  Argument | Type | Default
  --- | --- | ---
  window | QWidget |
  set | bool |

  Helper function to set or reset the fullscreen state of a window. Use this function rather than showFullScreen()/showNormal() QWidget functions. @since 4.0.3

- setWindow (window)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  window | QWidget |

  Sets the window that will be related to this action.