source: trunk/doc/html/qmotifwidget.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.8 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/extensions/motif/src/qmotifwidget.cpp:272 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QMotifWidget Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QMotifWidget Class Reference</h1>
33
34<p>The QMotifWidget class provides the QWidget API for Xt/Motif widgets.
35<a href="#details">More...</a>
36<p>This class is part of the <b>Qt Motif Extension</b>.
37<p><tt>#include &lt;<a href="qmotifwidget-h.html">qmotifwidget.h</a>&gt;</tt>
38<p>Inherits <a href="qwidget.html">QWidget</a>.
39<p><a href="qmotifwidget-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QMotifWidget"><b>QMotifWidget</b></a> ( QWidget&nbsp;*&nbsp;parent, WidgetClass&nbsp;widgetclass, ArgList&nbsp;args = NULL, Cardinal&nbsp;argcount = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;flags = 0 )</li>
43<li class=fn>virtual <a href="#~QMotifWidget"><b>~QMotifWidget</b></a> ()</li>
44<li class=fn>Widget <a href="#motifWidget"><b>motifWidget</b></a> () const</li>
45</ul>
46<h2>Protected Members</h2>
47<ul>
48<li class=fn>virtual bool <b>x11Event</b> ( XEvent&nbsp;*&nbsp;event )</li>
49</ul>
50<hr><a name="details"></a><h2>Detailed Description</h2>
51<p> This class is defined in the <b>Qt <a href="motif-extension.html#Motif">Motif</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main Qt API.
52<p>
53
54The QMotifWidget class provides the <a href="qwidget.html">QWidget</a> API for Xt/Motif widgets.
55
56<p>
57<p> QMotifWidget exists to provide a QWidget that can act as a parent
58for any Xt/Motif widget. Since the QMotifWidget is a proper
59QWidget, it can be used as a top-level widget (e.g. 0 parent) or
60as a child of any other QWidget. Note: Since QMotifWidget acts as
61a parent for Xt/Motif widgets, you should not create QWidgets with
62a QMotifWidget parent.
63<p> An Xt/Motif widget with a top-level QMotifWidget parent can begin
64using the standard Qt dialogs and custom QDialogs while keeping
65the main Xt/Motif interface of the application. Using a
66QMotifWidget as the parent for the various QDialogs will ensure
67that modality and stacking works properly throughout the entire
68application.
69<p> Applications moving to Qt may have custom Xt/Motif widgets that
70will take time to rewrite with Qt. Such applications can use
71these custom widgets as QMotifWidget with QWidget parents. This
72allows the application's interface to be replaced gradually.
73<p> <b>Warning:</b> QMotifWidget uses the X11 window ID of the Motif widget
74directly, instead of creating its own. Because ot this,
75<a href="qwidget.html#reparent">QWidget::reparent</a>() will not work. This includes the functions
76<a href="qwidget.html#showFullScreen">QWidget::showFullScreen</a>() and <a href="qwidget.html#showNormal">QWidget::showNormal</a>(), which use
77QWidget::reparent().
78
79<hr><h2>Member Function Documentation</h2>
80<h3 class=fn><a name="QMotifWidget"></a>QMotifWidget::QMotifWidget ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent, WidgetClass&nbsp;widgetclass, ArgList&nbsp;args = NULL, Cardinal&nbsp;argcount = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, WFlags&nbsp;flags = 0 )
81</h3>
82Creates a QMotifWidget of the given <em>widgetclass</em> as a child of
83<em>parent</em>, with the name <em>name</em> and widget flags <em>flags</em>.
84<p> The <em>args</em> and <em>argcount</em> arguments are passed on to
85XtCreateWidget.
86<p> The <a href="#motifWidget">motifWidget</a>() function returns the resulting Xt/Motif widget.
87This widget can be used as a parent for any other Xt/Motif widget.
88<p> If <em>parent</em> is a QMotifWidget, the Xt/Motif widget is created as
89a child of the parent's motifWidget(). If &#92; parent is 0 or a
90normal <a href="qwidget.html">QWidget</a>, the Xt/Motif widget is created as a child of a
91special TopLevelShell widget. Xt/Motif widgets can use this
92special TopLevelShell parent as the parent for existing
93Xt/Motif dialogs or QMotifDialogs.
94
95<h3 class=fn><a name="~QMotifWidget"></a>QMotifWidget::~QMotifWidget ()<tt> [virtual]</tt>
96</h3>
97Destroys the QMotifWidget. The special TopLevelShell is also
98destroyed, if it was created during construction.
99
100<h3 class=fn>Widget <a name="motifWidget"></a>QMotifWidget::motifWidget () const
101</h3>
102Returns the embedded Xt/Motif widget. If a Shell widget was
103created by the constructor, you can access it with XtParent().
104
105<!-- eof -->
106<hr><p>
107This file is part of the <a href="index.html">Qt toolkit</a>.
108Copyright &copy; 1995-2007
109<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
110<table width=100% cellspacing=0 border=0><tr>
111<td>Copyright &copy; 2007
112<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
113<td align=right><div align=right>Qt 3.3.8</div>
114</table></div></address></body>
115</html>
Note: See TracBrowser for help on using the repository browser.