Skip to content
ispyisail edited this page Nov 4, 2026 · 4 revisions

Check your change with qet-verify

qet-verify is a small script that checks a QElectroTech change before you open a pull request. It takes about 15 seconds, needs only Python 3, git, an internet connection and a QElectroTech checkout, and fails only on a problem your change adds, not on problems already in upstream master.

To tell the two apart, each run downloads the current upstream master into your checkout and runs the same checks on the commit your branch started from. Only what your branch adds on top counts. The download goes to a private name (refs/qet-verify/upstream-master) and does not touch your branches.

Run it before every pull request. It catches the mistakes reviewers would otherwise send back, so you and your AI assistant spend fewer rounds (and fewer tokens) on fixes after review.

Run it

mkdir -p ~/qet && cd ~/qet
git clone https://github.com/ispyisail/qet-verify
cd qet-verify
./verify.sh --qet-dir ~/qet/qelectrotech-source-mirror

Replace the --qet-dir path with your own checkout of QElectroTech (the folder that contains sources/). Commit your change first: the checks run on what is committed.

To also run the save check, add the program you built:

./verify.sh --qet-dir ~/qet/qelectrotech-source-mirror --binary ~/qet/qelectrotech-source-mirror/build/qelectrotech

Use a Qt 6 build. This takes about a minute.

What it checks

# Check Needs a build A FAIL means
1 Project and symbol files (tools/qet-lint) no Your change added a broken wire, a bad coordinate (NaN) or another file problem in the example projects or symbols
2 Interface text (tools/srclint) no A new interface string in tr() is not English
3 Save check (tools/determinism) yes (--binary) Saving and reloading a project lost or invented an element, wire or terminal
4 .qetdb round trip yes (--binary) A project saved as .qetdb and read back is not the same as saved as .qet
5 .qetdb new data no Your change adds saved data to an XML writer but not to the project database (or says qetdb: not needed (reason) in a commit message)
6 How-to video stories (optional, --videos) yes (--binary) A story a how-to video was recorded from no longer runs on your build: a menu was renamed, a dialog changed, or the result differs. Record that video again

Each line of output is PASS, FAIL or SKIP, and a failure names the file that holds the details. A SKIP is not a pass: that check did not run. Without --binary, checks 3, 4 and 6 are skipped.

Check 6 needs qet-how-to-video cloned next to qet-verify, and the tools listed on Making a how-to video:

cd ~/qet && git clone https://github.com/ispyisail/qet-how-to-video
cd qet-verify
./verify.sh --qet-dir ~/qet/qelectrotech-source-mirror --binary ~/qet/qelectrotech-source-mirror/build/qelectrotech \
            --videos ../qet-how-to-video/stories

The receipt

At the end verify.sh prints a block. Paste it into your pull request description.

qet-verify receipt
change:    4a91ca8a1 on master (tree clean)
checks:    project files PASS | english text PASS | save check PASS
baseline:  upstream master 4a91ca8a1, branch point 4a91ca8a1 (save check: upstream master 9edfbf234)
verifier:  qet-verify f4a348e

baseline names the upstream master that was downloaded and the commit your branch started from, which checks 1 and 2 compared against. The save check needs a build of master, so it still compares with results stored in qet-verify, recorded on the master commit named in brackets. If the line ends with upstream master unreachable, the download failed (no network) and the stored results were used for every check: a FAIL may then come from master itself, not from your change.

change is the commit the checks ran on. If it is not the last commit of your pull request, or it says UNCOMMITTED CHANGES, the checks are out of date: run again before you paste it.

A pasted receipt shows the checks were run; it does not prove it, because anyone can type one. A maintainer may run verify.sh again.

On Windows

Status: all five checks passed on Windows 11 on 2026-11-05, with Git for Windows, Python 3.14 and the CI portable package. That is one run on one machine, so tell us if anything fails that should not.

Run verify.sh from Git Bash (installed with Git for Windows), with Python 3.8 or newer on the PATH. The script finds python, py -3 or python3 by itself.

./verify.sh --qet-dir /c/src/qelectrotech-source-mirror --binary /c/build/bin/QElectroTech.exe
What On Windows
Checks 1 to 5 All passed on Windows 11 with Git for Windows, Python 3.14 and the CI portable package
Checks 3 and 4 and the window The CI package has no qoffscreen.dll, so these run with Qt's normal Windows platform and a window may flash briefly during each resave
Check 6 (how-to videos) Skipped: the recorder needs Xvfb, openbox and xdotool
--binary Needs the Qt DLLs next to the .exe (the CI portable zip has them) or on PATH. The script starts it with --version first and says so if it cannot
Your settings Both save checks use their own settings folder (QET_SETTINGS_DIR), so they never read or change your QElectroTech settings in the registry

A SKIP is not a pass. If you run it on Windows, say so in the pull request, and tell us if anything fails that should not.

What it does not check

  • Whether the feature should exist or whether the design is right. A maintainer decides that.
  • QET's unit tests. Run ctest in your build folder yourself.
  • A sanitizer build.

With an AI assistant

Tell the assistant: "Run qet-verify on my branch and fix every FAIL before we open the pull request. Put the receipt in the description." The AI assistant guide already points the assistant at this checker.

See also

Checked against build 153d1c447 on 2026-11-04 (by hand: ran verify.sh with --binary and --videos on that build; all six checks passed).

Windows: ran verify.sh from Git Bash with --binary on the CI portable build (run 40890077036); checks 1 to 5 passed, check 6 is skipped on Windows.

Getting Started

Home

🌐 Languages β€” English Β· FranΓ§ais Β· Deutsch

Downloads

Windows without admin rights β€” the portable archive, no installer

Quick Start Guide

User Manual

FAQ

Tips & Tricks

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

File formats
Elements XML
Project XML
Development

Building from Source

Contributing Code

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

Development Roadmap

Vision β€” proposal, under discussion

Developer Tools

About

Features

History

Community

License

Contributing to this Wiki

Clone this wiki locally