Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The ThemeWidgetItem class represents a widget in a ThemedView. More...
#include <ThemeWidgetItem>
Inherits ThemeGraphicItem.
Inherited by ThemeListItem.
The ThemeWidgetItem class represents a widget in a ThemedView.
The ThemeWidgetItem class implements the widget element from the theme XML.
The item can be assigned a widget by overriding ThemedView::newWidget() for the parent ThemedView for this item, or be calling setWidget() directly. ThemedView::newWidget() is called by this item once it has been completed constructed from the themed view XML.
Normally you do not want to call this item's functions directly, but rather specify the relevant attributes and data for this item in the themed view XML, or overload ThemedView::newWidget to provide a widget that way.
See also widget element.
Constructs a ThemeWidgetItem. parent, view and atts are passed to the base class constructor.
Destroys this ThemeWidgetItem. If a widget was set, and autoDelete() is true, the widget is deleted.
Sets the auto-delete flag for this widget item. If autodelete is true (the default), subsequent calls to setWidget() will cause any existing widget to be deleted. If you don't want ThemeWidgetItem to take memory ownership of the widgets you set on it, then call setAutoDelete(false) to disable this behaviour.
Sets the widget widget on this item.
See also widget().
Returns the widget for this item.
See also setWidget().
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |