1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/doc/src/qtdesigner.qdoc -->
7
<title>Qt 4.0: QDesignerCustomWidgetInterface Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QDesignerCustomWidgetInterface Class Reference</h1>
21
<p>The QDesignerCustomWidgetInterface provides an interface to a custom widget in <i>Qt Designer</i>. <a href="#details">More...</a></p>
22
<pre>#include <QDesignerCustomWidgetInterface></pre><p>Part of the <a href="qtdesigner.html">QtDesigner</a> module.</p>
24
<li><a href="qdesignercustomwidgetinterface-members.html">List of all members, including inherited members</a></li>
26
<a name="public-functions"></a>
27
<h3>Public Functions</h3>
29
<li><div class="fn"/>virtual <b><a href="qdesignercustomwidgetinterface.html#dtor.QDesignerCustomWidgetInterface">~QDesignerCustomWidgetInterface</a></b> ()</li>
30
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#codeTemplate">codeTemplate</a></b> () const</li>
31
<li><div class="fn"/>virtual QWidget * <b><a href="qdesignercustomwidgetinterface.html#createWidget">createWidget</a></b> ( QWidget * <i>parent</i> ) = 0</li>
32
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#domXml">domXml</a></b> () const</li>
33
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#group">group</a></b> () const = 0</li>
34
<li><div class="fn"/>virtual QIcon <b><a href="qdesignercustomwidgetinterface.html#icon">icon</a></b> () const = 0</li>
35
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#includeFile">includeFile</a></b> () const = 0</li>
36
<li><div class="fn"/>virtual void <b><a href="qdesignercustomwidgetinterface.html#initialize">initialize</a></b> ( QDesignerFormEditorInterface * <i>core</i> )</li>
37
<li><div class="fn"/>virtual bool <b><a href="qdesignercustomwidgetinterface.html#isContainer">isContainer</a></b> () const = 0</li>
38
<li><div class="fn"/>virtual bool <b><a href="qdesignercustomwidgetinterface.html#isInitialized">isInitialized</a></b> () const</li>
39
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#name">name</a></b> () const = 0</li>
40
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#toolTip">toolTip</a></b> () const = 0</li>
41
<li><div class="fn"/>virtual QString <b><a href="qdesignercustomwidgetinterface.html#whatsThis">whatsThis</a></b> () const = 0</li>
43
<a name="details"></a>
45
<h2>Detailed Description</h2>
46
<p>The QDesignerCustomWidgetInterface provides an interface to a custom widget in <i>Qt Designer</i>.</p>
47
<p>See also Custom Widgets for Qt Designer.</p>
49
<h2>Member Function Documentation</h2>
50
<h3 class="fn"><a name="dtor.QDesignerCustomWidgetInterface"></a>QDesignerCustomWidgetInterface::~QDesignerCustomWidgetInterface () <tt> [virtual]</tt></h3>
51
<p>Destroys the custom widget interface.</p>
52
<h3 class="fn"><a name="codeTemplate"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::codeTemplate () const <tt> [virtual]</tt></h3>
53
<p>Returns the code template that <i>Qt Designer</i> includes in forms that contain the custom widget when they are saved.</p>
54
<p>uic uses the code template to provide code for constructing the custom widget.</p>
55
<h3 class="fn"><a name="createWidget"></a><a href="qwidget.html">QWidget</a> * QDesignerCustomWidgetInterface::createWidget ( <a href="qwidget.html">QWidget</a> * <i>parent</i> ) <tt> [pure virtual]</tt></h3>
56
<p>Returns a new widget with the given <i>parent</i>.</p>
57
<h3 class="fn"><a name="domXml"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::domXml () const <tt> [virtual]</tt></h3>
58
<p>Returns the XML that is used to describe widget properties to <i>Qt Designer</i>.</p>
59
<h3 class="fn"><a name="group"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::group () const <tt> [pure virtual]</tt></h3>
60
<p>Returns the name of the group to which the custom widget belongs.</p>
61
<h3 class="fn"><a name="icon"></a><a href="qicon.html">QIcon</a> QDesignerCustomWidgetInterface::icon () const <tt> [pure virtual]</tt></h3>
62
<p>Returns the icon used to represent the custom widget in <i>Qt Designer</i>'s widget box.</p>
63
<h3 class="fn"><a name="includeFile"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::includeFile () const <tt> [pure virtual]</tt></h3>
64
<p>Returns the path to the include file that uic uses when creating code for the custom widget.</p>
65
<h3 class="fn"><a name="initialize"></a>void QDesignerCustomWidgetInterface::initialize ( <a href="qdesignerformeditorinterface.html">QDesignerFormEditorInterface</a> * <i>core</i> ) <tt> [virtual]</tt></h3>
66
<p>Initializes the widget for use with the form editor with the specified <i>core</i> interface.</p>
67
<p>See also <a href="qdesignercustomwidgetinterface.html#isInitialized">isInitialized</a>().</p>
68
<h3 class="fn"><a name="isContainer"></a>bool QDesignerCustomWidgetInterface::isContainer () const <tt> [pure virtual]</tt></h3>
69
<p>Returns true if the custom widget is intended to be used as a container; otherwise returns false.</p>
70
<p>Most custom widgets are not used to hold other widgets, so their implementations of this function will return false, but custom containers will return true to ensure that they behave correctly in <i>Qt Designer</i>.</p>
71
<h3 class="fn"><a name="isInitialized"></a>bool QDesignerCustomWidgetInterface::isInitialized () const <tt> [virtual]</tt></h3>
72
<h3 class="fn"><a name="name"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::name () const <tt> [pure virtual]</tt></h3>
73
<p>Returns the name of the class that implements the custom widget.</p>
74
<h3 class="fn"><a name="toolTip"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::toolTip () const <tt> [pure virtual]</tt></h3>
75
<p>Returns a short description of the widget that can be used by <i>Qt Designer</i> in a tool tip.</p>
76
<h3 class="fn"><a name="whatsThis"></a><a href="qstring.html">QString</a> QDesignerCustomWidgetInterface::whatsThis () const <tt> [pure virtual]</tt></h3>
77
<p>Returns a description of the widget that can be used by <i>Qt Designer</i> in "What's This?" help for the widget.</p>
78
<p /><address><hr /><div align="center">
79
<table width="100%" cellspacing="0" border="0"><tr class="address">
80
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
81
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
82
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
83
</tr></table></div></address></body>