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/qxtwidget.cpp:144 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QXtWidget Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { 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 Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main 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 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>QXtWidget Class Reference<br><small>[obsolete]</small></h1>
|
---|
33 |
|
---|
34 | <p>The QXtWidget class allows mixing of Xt/Motif and Qt widgets.
|
---|
35 | <b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
36 | <a href="#details">More...</a>
|
---|
37 | <p>This class is part of the <b>Qt Motif Extension</b>.
|
---|
38 | <p><tt>#include <<a href="qxtwidget-h.html">qxtwidget.h</a>></tt>
|
---|
39 | <p>Inherits <a href="qwidget.html">QWidget</a>.
|
---|
40 | <p><a href="qxtwidget-members.html">List of all member functions.</a>
|
---|
41 | <h2>Public Members</h2>
|
---|
42 | <ul>
|
---|
43 | <li class=fn><a href="#QXtWidget"><b>QXtWidget</b></a> ( const char * name, Widget parent, bool managed = FALSE )</li>
|
---|
44 | <li class=fn><a href="#QXtWidget-2"><b>QXtWidget</b></a> ( const char * name, WidgetClass widget_class, QWidget * parent = 0, ArgList args = 0, Cardinal num_args = 0, bool managed = FALSE )</li>
|
---|
45 | <li class=fn><a href="#~QXtWidget"><b>~QXtWidget</b></a> ()</li>
|
---|
46 | <li class=fn>Widget <a href="#xtWidget"><b>xtWidget</b></a> () const</li>
|
---|
47 | <li class=fn>bool <a href="#isActiveWindow"><b>isActiveWindow</b></a> () const</li>
|
---|
48 | <li class=fn>virtual void <a href="#setActiveWindow"><b>setActiveWindow</b></a> ()</li>
|
---|
49 | </ul>
|
---|
50 | <h2>Protected Members</h2>
|
---|
51 | <ul>
|
---|
52 | <li class=fn>virtual bool <a href="#x11Event"><b>x11Event</b></a> ( XEvent * e )</li>
|
---|
53 | </ul>
|
---|
54 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
55 | <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.
|
---|
56 | <p>
|
---|
57 |
|
---|
58 | The QXtWidget class allows mixing of Xt/Motif and Qt widgets.
|
---|
59 | <b>This class is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
60 | <p>
|
---|
61 | <p> QXtWidget acts as a bridge between Xt and Qt. For utilizing old Xt
|
---|
62 | widgets, it can be a <a href="qwidget.html">QWidget</a> based on a Xt widget class. For
|
---|
63 | including Qt widgets in an existing Xt/Motif application, it can be
|
---|
64 | a special Xt widget class that is a QWidget. See the constructors
|
---|
65 | for the different behaviors.
|
---|
66 | <p> <h4> Known QXtWidget Problems
|
---|
67 | </h4>
|
---|
68 | <a name="1"></a><p> This class is unsupported and has many known problems and
|
---|
69 | limitations. It is provided only to keep existing source working;
|
---|
70 | it should not be used in new code. Note: These problems will <em>not</em>
|
---|
71 | be fixed in future releases.
|
---|
72 | <p> Below is an imcomplete list of know issues:
|
---|
73 | <p> <ol type=1>
|
---|
74 | <p> <li> <a href="focus.html#keyboard-focus">Keyboard focus</a> navigation is impossible when using QXtWidget.
|
---|
75 | The mouse must be used to focus widgets in both Qt and Xt/Motif
|
---|
76 | widgets. For example, when embedding a QXtWidget into an Xt/Motif
|
---|
77 | widget, key events will go to the QXtWidget (and its children) while
|
---|
78 | the mouse is over the QXtWidget, regardless of where Xt/Motif has
|
---|
79 | placed the focus.
|
---|
80 | <p> <li> Reparenting does not work. You cannot use
|
---|
81 | <a href="qwidget.html#reparent">QWidget::reparent</a>(). This includes the functions
|
---|
82 | <a href="qwidget.html#showFullScreen">QWidget::showFullScreen</a>() and <a href="qwidget.html#showNormal">QWidget::showNormal</a>(), which use
|
---|
83 | QWidget::reparent().
|
---|
84 | <p> </ol>
|
---|
85 |
|
---|
86 | <hr><h2>Member Function Documentation</h2>
|
---|
87 | <h3 class=fn><a name="QXtWidget"></a>QXtWidget::QXtWidget ( const char * name, Widget parent, bool managed = FALSE )
|
---|
88 | </h3>
|
---|
89 | Constructs a QXtWidget of the special Xt widget class known as
|
---|
90 | "QWidget" to the resource manager.
|
---|
91 | <p> Use this constructor to utilize Qt widgets in an Xt/Motif
|
---|
92 | application. The QXtWidget is a <a href="qwidget.html">QWidget</a>, so you can create
|
---|
93 | subwidgets, layouts, etc. using Qt functionality.
|
---|
94 | <p> The <em>name</em> is the object name passed to the QWidget constructor.
|
---|
95 | The widget's parent is <em>parent</em>.
|
---|
96 | <p> If the <em>managed</em> parameter is TRUE and <em>parent</em> in not null,
|
---|
97 | XtManageChild it used to manage the child.
|
---|
98 |
|
---|
99 | <h3 class=fn><a name="QXtWidget-2"></a>QXtWidget::QXtWidget ( const char * name, WidgetClass widget_class, <a href="qwidget.html">QWidget</a> * parent = 0, ArgList args = 0, Cardinal num_args = 0, bool managed = FALSE )
|
---|
100 | </h3>
|
---|
101 | Constructs a QXtWidget of the given <em>widget_class</em> called <em>name</em>.
|
---|
102 | <p> Use this constructor to utilize Xt or <a href="motif-extension.html#Motif">Motif</a> widgets in a Qt
|
---|
103 | application. The QXtWidget looks and behaves
|
---|
104 | like the Xt class, but can be used like any <a href="qwidget.html">QWidget</a>.
|
---|
105 | <p> Note that Xt requires that the most top level Xt widget is a shell.
|
---|
106 | This means, if <em>parent</em> is a QXtWidget, the <em>widget_class</em> can be
|
---|
107 | of any kind. If there isn't a parent or the parent is just a normal
|
---|
108 | QWidget, <em>widget_class</em> should be something like <tt>topLevelShellWidgetClass</tt>.
|
---|
109 | <p> The arguments, <em>args</em>, <em>num_args</em> are passed on to XtCreateWidget.
|
---|
110 | <p> If the <em>managed</em> parameter is TRUE and <em>parent</em> in not null,
|
---|
111 | XtManageChild it used to manage the child.
|
---|
112 |
|
---|
113 | <h3 class=fn><a name="~QXtWidget"></a>QXtWidget::~QXtWidget ()
|
---|
114 | </h3>
|
---|
115 | Destructs the QXtWidget.
|
---|
116 |
|
---|
117 | <h3 class=fn>bool <a name="isActiveWindow"></a>QXtWidget::isActiveWindow () const
|
---|
118 | </h3>
|
---|
119 | Different from <a href="qwidget.html#isActiveWindow">QWidget::isActiveWindow</a>()
|
---|
120 |
|
---|
121 | <h3 class=fn>void <a name="setActiveWindow"></a>QXtWidget::setActiveWindow ()<tt> [virtual]</tt>
|
---|
122 | </h3>
|
---|
123 | Implement a degree of focus handling for Xt widgets.
|
---|
124 |
|
---|
125 | <p>Reimplemented from <a href="qwidget.html#setActiveWindow">QWidget</a>.
|
---|
126 | <h3 class=fn>bool <a name="x11Event"></a>QXtWidget::x11Event ( XEvent * e )<tt> [virtual protected]</tt>
|
---|
127 | </h3>
|
---|
128 | Reimplemented to produce the Xt effect of getting focus when the
|
---|
129 | mouse enters the widget. The event is passed in <em>e</em>.
|
---|
130 |
|
---|
131 | <p>Reimplemented from <a href="qwidget.html#x11Event">QWidget</a>.
|
---|
132 | <h3 class=fn>Widget <a name="xtWidget"></a>QXtWidget::xtWidget () const
|
---|
133 | </h3>
|
---|
134 |
|
---|
135 | <p> Returns the Xt widget equivalent for the Qt widget.
|
---|
136 |
|
---|
137 | <!-- eof -->
|
---|
138 | <hr><p>
|
---|
139 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
140 | Copyright © 1995-2007
|
---|
141 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
142 | <table width=100% cellspacing=0 border=0><tr>
|
---|
143 | <td>Copyright © 2007
|
---|
144 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
145 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
146 | </table></div></address></body>
|
---|
147 | </html>
|
---|