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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QXtWidget Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QXtWidget Class Reference</h1><br clear="all">
<p>
Allows mixing of Xt/Motif and Qt widgets.
<p>This class is part of the <b>Qt Xt/Motif Extension.</b>
<a href="#details">More...</a>
<p>
<code>#include <<a href="qxt-h.html">qxt.h</a>></code>
<p>
Inherits <a href="qwidget.html">QWidget</a>.
<p><a href="qxtwidget-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#5c378a"><b>QXtWidget</b></a>(constchar*name, Widgetparent, boolmanaged=FALSE)</div>
<li><div class="fn"><a href="#d4f701"><b>QXtWidget</b></a>(constchar*name, WidgetClasswidget_class, QWidget*parent=0, ArgListargs=0, Cardinalnum_args=0, boolmanaged=FALSE)</div>
<li><div class="fn"><a href="#6318d2"><b>~QXtWidget</b></a>()</div>
<li><div class="fn">Widget<a href="#a2c32d"><b>xtWidget</b></a>()const</div>
<li><div class="fn">bool<a href="#b5cf77"><b>isActiveWindow</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#d227d8"><b>setActiveWindow</b></a>()</div>
</ul>
<h2>Protected Members</h2>
<ul>
<li><div class="fn">bool<a href="#2d0a93"><b>x11Event</b></a>(XEvent*)</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
This class is defined in the <b>Qt Xt/Motif Extension</b>, which can be found in the <tt>qt/extensions</tt> directory.
It is not included in the main Qt API.
<p>
Allows mixing of Xt/Motif and Qt widgets.
<p>
QXtWidget acts as a bridge between Xt and Qt. For utilizing old
Xt widgets, it can be a <a href="qwidget.html">QWidget</a>
based on a Xt widget class. For including Qt widgets in an existing
Xt/Motif application, it can be a special Xt widget class that is
a QWidget. See the constructors for the different behaviors.
<p>Examples:
<a href="mainlyQt-editor-cpp.html#QXtWidget">mainlyQt/editor.cpp</a>
<a href="mainlyXt-editor-cpp.html#QXtWidget">mainlyXt/editor.cpp</a>
<a href="mainlyMotif-editor-cpp.html#QXtWidget">mainlyMotif/editor.cpp</a>
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="5c378a"></a>QXtWidget::QXtWidget(constchar*name, Widgetparent, boolmanaged=FALSE)</h3>
<p>Constructs a QXtWidget of the special Xt widget class known as
"<a href="qwidget.html">QWidget</a>" to the resource manager.
<p>Use this constructor to utilize Qt widgets in an Xt/Motif
application. The QXtWidget is a QWidget, so you can create
subwidgets, layouts, etc. using Qt functionality.
<h3 class="fn"><a name="d4f701"></a>QXtWidget::QXtWidget(constchar*name, WidgetClasswidget_class, <a href="qwidget.html">QWidget</a>*parent=0, ArgListargs=0, Cardinalnum_args=0, boolmanaged=FALSE)</h3>
<p>Constructs a QXtWidget of the given <em>widget_class.</em>
<p>Use this constructor to utilize Xt or Motif widgets in a Qt
application. The QXtWidget looks and behaves
like the Xt class, but can be used like any <a href="qwidget.html">QWidget</a>.
<p>Note that Xt requires that the most toplevel Xt widget is a shell.
That means, if <em>parent</em> is a QXtWidget, the <em>widget_class</em> can be
of any kind. If there isn't a parent or the parent is just a normal
QWidget, <em>widget_class</em> should be something like <code>topLevelShellWidgetClass.</code>
<p>If the <em>managed</em> parameter is TRUE and <em>parent</em> in not NULL,
XtManageChild it used to manage the child.
<h3 class="fn"><a name="6318d2"></a>QXtWidget::~QXtWidget()</h3>
<p>Destructs the QXtWidget.
<h3 class="fn">bool<a name="b5cf77"></a>QXtWidget::isActiveWindow()const</h3>
<p>Different from <a href="qwidget.html#331f68">QWidget::isActiveWindow</a>().
<h3 class="fn">void<a name="562e6b"></a>QXtWidget::moveEvent(<a href="qmoveevent.html">QMoveEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#3f1b15">QWidget.</a>
<h3 class="fn">void<a name="71ff15"></a>QXtWidget::resizeEvent(<a href="qresizeevent.html">QResizeEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
<a href="mainlyQt-editor-cpp.html#QXtWidget::resizeEvent">mainlyQt/editor.cpp</a>
<a href="mainlyXt-editor-cpp.html#QXtWidget::resizeEvent">mainlyXt/editor.cpp</a>
<p>Reimplemented from <a href="qwidget.html#7d375f">QWidget.</a>
<h3 class="fn">void<a name="d227d8"></a>QXtWidget::setActiveWindow() <code>[virtual]</code></h3>
<p>Implement a degree of focus handling for Xt widgets.
<p>Reimplemented from <a href="qwidget.html#238801">QWidget.</a>
<h3 class="fn">bool<a name="2d0a93"></a>QXtWidget::x11Event(XEvent*e) <code>[protected]</code></h3>
<p>Reimplemented to produce the Xt effect of getting focus when the
mouse enters the widget. <em>This may be changed.</em>
<h3 class="fn">Widget<a name="a2c32d"></a>QXtWidget::xtWidget()const</h3>
<p>Returns the Xt widget equivalent for the Qt widget.
<p>Examples:
<a href="mainlyXt-editor-cpp.html#xtWidget">mainlyXt/editor.cpp</a>
<a href="mainlyMotif-editor-cpp.html#xtWidget">mainlyMotif/editor.cpp</a>
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2001
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2001 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|