Repository navigation
how_to_videos
Short videos are the quickest way to show a new feature: scorpio810 asked for 1β3 minute videos of new features for the QElectroTech YouTube channel in discussion #1727. qet-how-to-video makes them from a short text file, a story, instead of by screen recording by hand.
A story says what a person would do ("open this menu, click here, type 40") and what the project must contain afterwards. The tool plays the story on a real QElectroTech build, on a private screen of its own, saves the project and checks it. Only if the check passes does it make the video. So a video always shows a feature that worked on the build named on its end card, and a story that stops working (a menu renamed, a feature broken) gives an error instead of a wrong video.
![]()
| File | For |
|---|---|
<name>.mp4 |
YouTube: 1080p, captions on the picture, music and click sounds, a separate English caption track |
<name>.github.mp4 |
a pull request or a discussion comment: 720p, under 10 MB |
<name>.en.srt |
the captions |
<name>.description.txt |
summary, chapters, links to the wiki page and the pull request, the QET commit |
<name>.thumbnail.png |
1280Γ720: the title, the command's toolbar icon, the work before and after |
<name>.contact.png |
one picture every 5 seconds, to look the video over quickly |
The camera zooms in on the part of the sheet being worked on and back out for menus. The music is generated for each video from sine waves, so there is no copyright on it.
Nothing is uploaded for you. Drag <name>.github.mp4 into the pull request or
the #1727 discussion; give the other files to scorpio810, who publishes on the
QElectroTech channel.
Linux, and:
| Need | Why |
|---|---|
| A Qt 6 build of QElectroTech, in its source checkout | the video shows that program; symbols, test projects and the logo come from the checkout |
cmake, ninja and the Qt 6 development files |
to build the probe, once, automatically. It must be the same Qt 6 version your QElectroTech uses |
Xvfb, openbox, xdotool, xwininfo, scrot
|
the private screen the program runs on |
| Python 3, PyYAML, Pillow | the tool |
| Docker | ffmpeg runs from a container, so nothing else needs installing |
| Noto Sans fonts | captions |
On Debian or Ubuntu:
sudo apt install xvfb openbox xdotool x11-utils scrot python3-yaml python3-pil \
cmake ninja-build qt6-base-dev fonts-noto-core docker.iogit clone https://github.com/ispyisail/qet-how-to-video
cd qet-how-to-video
B=~/qet/qelectrotech-source-mirror/build/qelectrotech # your Qt 6 build
OUT=~/qet-videos # videos are big: not /tmp
python3 probe.py --binary $B # self-test, about 30 s: every line must say PASS
python3 story.py stories/add-a-fillet.yaml --binary $B --out $OUT --check-only
python3 story.py stories/add-a-fillet.yaml --binary $B --out $OUT-
--check-onlyplays the story quickly without recording (about 45 s) and printsPASSorFAILwith the reason. - Without it, the story is recorded and the video made (about 2.5 minutes).
-
python3 render.py $OUT add-a-filletmakes the video again from the same recording, for example after you change a caption. - If your program is not inside the checkout (
<checkout>/<build folder>/qelectrotech), add--qet-dir <checkout>.
Start from a copy of stories/add-a-fillet.yaml:
title: Add a fillet
summary: Round the corner between two drawn lines.
wiki: drawing_arcs # this wiki's page, shown on the end card
pr: 1212 # the pull request, shown on the end card
thumbnail: {before: 2} # thumbnail shows the work as chapter 2 starts, then the result
steps:
- title: Add a fillet
sub: Round the corner between two lines
- chapter: "Pick the tool: {path:Add a fillet}"
- menu: Add a fillet
- click: [280, 300]
- click: [160, 210]
- wait_for: {dialog: Fillet}
- type: "40"
- key: Return
- wait_for: {undo: Add a fillet}
expect:
- undo: Add a fillet
- shapes: {type: Arc, count: 1}Things are named, never measured. A menu or toolbar button is named by its English command text; the tool finds the menu path itself. A dialog is named by its title; a button by its text; a point on the sheet by its sheet coordinates. A small helper library (the probe) loaded into QElectroTech answers where each thing is on the screen and tells the tool when a dialog opens or an undo step is added, so the story waits for that instead of for a fixed time.
Take every label from the source code (tr("β¦")), not from memory.
Each step has one main word; the others are options.
| Step | Does |
|---|---|
title: Text |
a title over the screen; the first and last become the opening and closing cards (sub: adds a second line) |
chapter: Text |
a caption that is also a chapter in the YouTube description |
caption: Text |
a caption, until the next one or end_caption:
|
menu: Command |
open the menus down to the command and click it |
toolbar: Command |
click the command's toolbar button |
click: [x, y] |
click a point on the sheet (button: right for a right-click) |
click: {widget: {class: QPushButton, text: OK}} |
click a button, box or list by its class, name, title, text or contains
|
click: {combo_item: Bottom-Right} |
pick an entry of the drop-down list that is open |
drag: {from: [x, y], to: [x, y]} |
drag on the sheet |
move: [x, y] |
move the pointer without clicking |
key: ctrl+z |
press keys, shown on the screen; press: does the same without showing them |
type: "40" |
type text |
wheel: [x, y] |
turn the mouse wheel (notches, dir: down, hold_key: alt) |
wait_for: {dialog: Title} |
wait for a dialog; also dialog_closed, undo, status, action
|
highlight: {widget: β¦} or {rect: [x, y, w, h]}
|
an orange frame around something, for secs seconds |
frame: {rect: [x, y, w, h]} |
zoom the sheet onto an area |
hold: 2 |
wait 2 seconds |
In a caption, {path:Add a fillet} becomes "Edit βΈ Add βΈ Add a fillet" and
{tip:Add a fillet} the command's status-bar text, both read from the
program, so they stay right when a menu moves. setup: steps run before the
recording starts (for example a frame: to zoom in first). fixture: opens a
project from the checkout instead of starting a new one.
After the last step the project is saved and every line of expect: is
checked. If one fails, no video is made.
| Check | Passes when |
|---|---|
shapes: {type: Line, count: 2} |
the saved project has that many shapes of that type (Line, Rectangle, Arc, Ellipse; no count = at least one) |
undo: Text |
an undo step with that name was added |
saved_text: 'regex' |
the saved project's files contain it |
aligned: [left, top] |
every rectangle shares those edges |
view_zoom: 1.30 |
the sheet ends at 130 % zoom |
arcs_tangent: true |
every arc meets a line smoothly |
Give every story a check. A video that cannot fail does not show that the feature works.
Open <name>.contact.png and look at a few frames at full size: is the
camera on the right place, is a caption hiding the action, is the thumbnail
right? Audio is levelled to β14 LUFS automatically; listen to it once.
When a menu is renamed or moved, a video recorded earlier goes out of date.
qet-verify checks for that: with
--videos ../qet-how-to-video/stories it plays every story quickly on your
build and fails if one no longer works, so a pull request that renames a
command says which videos to record again.
The stories folder holds stories for features already in master, and
every one must pass there. Stories for a feature still in an open pull
request go in stories/pending and move to stories when it is merged.
The repository has the rules for an assistant in two forms: AGENTS.md for
any assistant (give it the file, or keep it in the folder the assistant works
in), and skills/qet-how-to-video for Claude Code (copy the folder into
~/.claude/skills/). Then ask, for example: "Make a how-to video for pull
request #1234: write a story with a check, run it with --check-only until it
passes, then record it. Don't upload anything."
| Message | What to do |
|---|---|
probe β¦ did not answer |
the probe was built with a different Qt 6 version from the one your QElectroTech uses: build QElectroTech against the system Qt 6 |
building the probe failed |
install cmake, ninja and the Qt 6 development files |
'X' is in no menu |
the command was renamed or moved: update the story |
the story does not do what it says |
a line of expect: failed: the message says which, and what was found |
no dialog_shown β¦; saw [β¦] |
the dialog did not open in time; the message lists what did happen |
A story passes slowly but fails with --speed 0.25
|
it may have found a real bug: report it rather than slowing the story down |
| The video was handed to another QElectroTech | something else is running QElectroTech the same way, for example a Docker container with host networking: stop it |
- Linux only: the private screen is an X11 server (Xvfb).
- Qt 6 builds only, with the same Qt version as the probe.
- Uploading is by hand.
- The camera plans itself from where the clicks are;
frame:andhighlight:steer it, but there is no manual camera path.
- Check your change: qet-verify β check 6 replays the stories
- Writing wiki pages with an AI assistant β the page that goes with a video
- Arcs and curved wires β the page the example video is about
- qet-how-to-video on GitHub β the tool and its README
Checked against build
153d1c447on 2026-11-04 (ran the commands on this page from a fresh clone of qet-how-to-video; add-a-fillet recorded and rendered).
Getting Started
π Languages β English Β· FranΓ§ais Β· Deutsch
Windows without admin rights β the portable archive, no installer
Guides
Conductors β wire properties, what feeds which export, cables, and hops where wires cross
Wires per terminal β limit the wires on a terminal, chain wiring instead of stars
Printing and exporting β paper, PDF, images, and what each path does differently
Linking elements β master, slave, terminal
PLC modules β I/O tables and linking a wire to a specific point
Using the element editor β drawing tools, saving, checks
Generic devices β a quick box symbol with terminals on any side, made by a wizard
Grid size and element size β why symbols aren't all the same scale, and scaling one without leaving the grid
Preferences reference β what each settings page does
Saving and loading settings β your whole setup in one file, to copy or keep
Keyboard-only control β mouseless QET, and what still needs a mouse
Mouse modifiers β what Shift, Ctrl and Alt change while you drag
3D mouse β SpaceMouse pan, zoom and buttons
Aligning items β snap symbols back to the grid, or line them up
Drawing aids β dark mode, snap and grid step, crosshair, dimensions, the tape measure
Symbols already on the sheet β select the same symbols, replace them, show a T-junction as a dot, update placed copies from the collections
Symbol texts β place the texts at nine points, fixed or free size, format painter, title block cells, GOST ESKD, %T
Wiring tools β automatic connections, the Connections toolbar, chained folio reports, a cable across wires
Symbols and parts β edit several symbols, relay contact display, grouped parts list
Device types β what a device is made of: check, place and change its parts, Device Navigator
Project languages and checks β languages in a project, cell origin, duplicate labels, the Check panel
Reports and lists β project lists to CSV/PDF, tables on a folio, label-printer export, symbol list
Pictures on a sheet β labels, crop, transparency, what they cost in the file
Arcs and curved wires β the Arc tool, pulling an arc in or out, rounding a corner with a fillet, dashed arcs for lighting layouts
Grouping items β select, move and copy several items as one
Finding your place on a sheet β go to a cell like B13 or 4-B7, keep the headers in sight, show the cell limits, zoom and pan
Showing and hiding kinds of items β hide texts, wire numbers, shapes, pictures, tables or cross-references on every sheet
Drawing faster β place without dragging, the S shortcut bar, command search, gestures
Customising QElectroTech β keys, toolbar size and contents, the gesture ring
Managing collections β folders, writability, building your own shortlist
Templates β reusable multi-element blocks, placed by double-click or drag
Search & Replace β bulk property changes
Building a nomenclature query β the BOM/summary table builder
Formula columns β build a calculated column in a parts list without writing SQL
Linking wires across pages β sheet reports
Variables & formulas β %f, %{label}, sequences
Auto-numbering β schemes, sequences, freezing
Terminal strips β strips, levels, bridges
Connectors β plugs and sockets as terminal strips or head-with-pins devices, device types, pin check, spare-pin plans
Title block templates β the .titleblock format
Title block alignment β place a title block inside or outside the sheet, left, centred or right
Plants and locations β list, rename, copy a plant, suggestions
Designations and structure boxes β IEC 81346 names, structure boxes, ==/++ levels, folio groups, company prefixes
Revisions, document kinds and drawing standard β revision list and table, IEC 61355 document kind, project standard
Importing EPLAN parts (.edz) β EPLAN Data Portal
DXF import & export β two unrelated features, one format; command-line export and layers
Project files β .qetz (zipped, the default) and .qet, what is inside, opening big projects faster, starting from a template
The one-file project, .qetdb β history of saves, repair, --query over many projects
Saving safely β previous versions, a project open elsewhere, damaged files, crash recovery
The project database β the working SQLite database built when a project opens
Development
Code style β the QET house style for C++, and formatting only the lines you change
Fix or add with an AI assistant β beginner build setup and a prompt that does the work
Check your change: qet-verify β run it before every pull request
Posting with an AI assistant β short, plain pull requests and replies
Translate with an AI assistant β draft the interface in your language, check it, send it
Making a how-to video β a short feature video from a checked story
Writing wiki pages with an AI assistant β the rules, and a checker to run before you push
Automating QET β CLI, XML formats, external tools
CLI Reference β command line usage
JavaScript Scripting β --run, geometry editing, undo
MCP server β let an AI assistant read, verify and edit projects
Connecting an AI assistant β setup for Claude, Copilot, Gemini, Codex, Cursor, LM Studio
Script buttons β stored scripts with an icon, by hand or by an assistant
Live mode β an assistant working in the open project while you watch
Macro recorder β record a task by hand, for an assistant to script
Vision β proposal, under discussion
