mirror of
https://gitlab.com/eql/EQL5.git
synced 2026-01-17 06:40:46 -08:00
23 lines
856 B
HTML
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> 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> eql ui-file.lisp</code>
|
|
</p>
|
|
</html>
|