Home · All Classes · Main Classes · Deprecated
Public Member Functions

MOverlay Class Reference

The MOverlay class displays a widget on top of the viewport. More...

Inherits MSceneWindow.

List of all members.

Public Member Functions

 MOverlay (QGraphicsItem *parent=0)
virtual ~MOverlay ()
MWidgetwidget () const
void setWidget (MWidget *widget)

Detailed Description

The MOverlay class displays a widget on top of the viewport.

MOverlay class enables creation and displaying of a widget on top of the current viewport. It provides a widget which is ready for use out of the box. It follows the idea used for MApplication's centralWidget(), i.e. it can be used as a panel (can have a layout applied and filled with other widgets) or simply substituted with another widget. The widget can be positioned inside the scene using alignment and offset defined in stylesheet.

See also:
MApplicationPage

Constructor & Destructor Documentation

MOverlay::MOverlay ( QGraphicsItem parent = 0  ) 

Constructs a widget with the given parent.

MOverlay::~MOverlay (  )  [virtual]

Destructor.


Member Function Documentation

void MOverlay::setWidget ( MWidget widget  ) 

Sets the given widget as a topmost widget. The ownership of the widget is passed to the MOverlay instance.

Parameters:
widget A widget to be set as topmost.
MWidget * MOverlay::widget (  )  const

Returns a pointer to the topmost widget. By default this class provides a widget (panel) on which other widgets can be placed.


Copyright © 2010 Nokia Corporation
MeeGo Touch