EQL5/doc/QtDesigner.htm
2016-11-25 23:30:38 +01:00

23 lines
856 B
HTML

<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<h2>Qt Designer</h2>
<ul>
<li>In Qt Designer, set a unique <code>objectName</code> to every object you want to use from Lisp.
<li>In Lisp, load the <code>*.ui</code> file using <code>qload-ui</code> (which will return the main widget of the UI).
<li>To get the single widgets from the UI, use <code>qfind-child</code>.
</ul>
<p>For an example, see <code>examples/3-main-window.lisp</code>.</p>
<hr>
<p>
If you want to translate your UI files to the corresponding EQL code, do the following
at the command line:
<br><code>&nbsp;&nbsp;eql -quic file.ui</code>
<br>which will generate a file named <code>ui-file.lisp</code>. See also function <code>quic</code>.
</p>
<p>
For a quick test of the generated file, try this:
<br><code>&nbsp;&nbsp;eql ui-file.lisp</code>
</p>
</html>