blob: cc8da674331a56ef6dfe9b37bbfecab5f58f2acc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qtvariantproperty.cpp -->
<head>
<title>QtVariantEditorFactory Class Reference</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="57" height="67" border="0" /></td>
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
</tr></table><h1 class="title">QtVariantEditorFactory Class Reference</h1>
<p>The QtVariantEditorFactory class provides widgets for properties created by <a href="qtvariantpropertymanager.html">QtVariantPropertyManager</a> objects. <a href="#details">More...</a></p>
<pre> #include <QtVariantEditorFactory></pre><p>Inherits <a href="qtabstracteditorfactory.html">QtAbstractEditorFactory<QtVariantPropertyManager></a>.</p>
<ul>
<li><a href="qtvarianteditorfactory-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtvarianteditorfactory.html#QtVariantEditorFactory">QtVariantEditorFactory</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtvarianteditorfactory.html#dtor.QtVariantEditorFactory">~QtVariantEditorFactory</a></b> ()</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>5 public functions inherited from <a href="qtabstracteditorfactory.html#public-functions">QtAbstractEditorFactory</a></li>
<li><div bar="2" class="fn"></div>1 public function inherited from <a href="qtabstracteditorfactorybase.html#public-functions">QtAbstractEditorFactoryBase</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>3 protected functions inherited from <a href="qtabstracteditorfactory.html#protected-functions">QtAbstractEditorFactory</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QtVariantEditorFactory class provides widgets for properties created by <a href="qtvariantpropertymanager.html">QtVariantPropertyManager</a> objects.</p>
<p>The variant factory provides the following widgets for the specified property types:</p>
<p><table class="generic" align="center" cellpadding="2" cellspacing="1" border="0">
<thead><tr valign="top" class="qt-style"><th>Property Type</th><th>Widget</th></tr></thead>
<tr valign="top" class="odd"><td><tt>int</tt></td><td><a href="http://qt.nokia.com/doc/4.6/qspinbox.html">QSpinBox</a></td></tr>
<tr valign="top" class="even"><td><tt>double</tt></td><td><a href="http://qt.nokia.com/doc/4.6/qdoublespinbox.html">QDoubleSpinBox</a></td></tr>
<tr valign="top" class="odd"><td><tt>bool</tt></td><td><a href="http://qt.nokia.com/doc/4.6/qcheckbox.html">QCheckBox</a></td></tr>
<tr valign="top" class="even"><td><a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a></td><td><a href="http://qt.nokia.com/doc/4.6/qlineedit.html">QLineEdit</a></td></tr>
<tr valign="top" class="odd"><td><a href="http://qt.nokia.com/doc/4.6/qdate.html">QDate</a></td><td><a href="http://qt.nokia.com/doc/4.6/qdateedit.html">QDateEdit</a></td></tr>
<tr valign="top" class="even"><td><a href="http://qt.nokia.com/doc/4.6/qtime.html">QTime</a></td><td><a href="http://qt.nokia.com/doc/4.6/qtimeedit.html">QTimeEdit</a></td></tr>
<tr valign="top" class="odd"><td><a href="http://qt.nokia.com/doc/4.6/qdatetime.html">QDateTime</a></td><td><a href="http://qt.nokia.com/doc/4.6/qdatetimeedit.html">QDateTimeEdit</a></td></tr>
<tr valign="top" class="even"><td><a href="http://qt.nokia.com/doc/4.6/qkeysequence.html">QKeySequence</a></td><td>customized editor</td></tr>
<tr valign="top" class="odd"><td><a href="http://qt.nokia.com/doc/4.6/qchar.html">QChar</a></td><td>customized editor</td></tr>
<tr valign="top" class="even"><td><tt>enum</tt></td><td><a href="http://qt.nokia.com/doc/4.6/qcombobox.html">QComboBox</a></td></tr>
<tr valign="top" class="odd"><td><a href="http://qt.nokia.com/doc/4.6/qcursor.html">QCursor</a></td><td><a href="http://qt.nokia.com/doc/4.6/qcombobox.html">QComboBox</a></td></tr>
</table></p>
<p>Note that <a href="qtvariantpropertymanager.html">QtVariantPropertyManager</a> supports several additional property types for which the QtVariantEditorFactory class does not provide editing widgets, e.g. <a href="http://qt.nokia.com/doc/4.6/qpoint.html">QPoint</a> and <a href="http://qt.nokia.com/doc/4.6/qsize.html">QSize</a>. To provide widgets for other types using the variant approach, derive from the QtVariantEditorFactory class.</p>
<p>See also <a href="qtabstracteditorfactory.html">QtAbstractEditorFactory</a> and <a href="qtvariantpropertymanager.html">QtVariantPropertyManager</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QtVariantEditorFactory"></a>QtVariantEditorFactory::QtVariantEditorFactory ( <a href="http://qt.nokia.com/doc/4.6/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Creates a factory with the given <i>parent</i>.</p>
<h3 class="fn"><a name="dtor.QtVariantEditorFactory"></a>QtVariantEditorFactory::~QtVariantEditorFactory ()</h3>
<p>Destroys this factory, and all the widgets it has created.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
</tr></table></div></address></body>
</html>
|