Repository navigation
saving_safely
QElectroTech protects a project file in five ways. Each acts at a different moment, and each has a setting or a dialog you can see.
| Moment | Protection | Section |
|---|---|---|
| Each save | The file as it was is kept as a previous version | 1 |
| Opening a damaged file | The previous version, or what can be read, is offered | 2 |
| Opening a project someone else has open | A warning, with read-only as the safe choice | 3 |
| Saving over a file that changed on disk | A warning, with Save as a copy | 3 |
| After a crash | The project as it was after its last edit is offered | 4 |
Before a project is saved, the file as it was is copied to a folder beside it,
named after the project with -backups. Only the newest copies are kept.
Set how many in Settings β General β Projects, Previous versions kept when saving a project. None switches it off.
When a file cannot be read, QElectroTech does not just refuse it. The dialog
Cannot open <file> says why and offers, as buttons:
| Button | Offered when | Result |
|---|---|---|
Open the version saved <date> |
a previous version exists | the newest previous version opens |
| Recover what can be read | the file is a .qetz
|
what can be read from it opens |
| Cancel | always | nothing happens |
Either choice opens a new project named <name> (recovered). The damaged
file is left as it is: it is never moved and never written. If nothing can be
recovered the dialog says so.
A file that changed on disk behind QElectroTech's back, with its content no longer what was saved, gets its own question when it opens: Go back to the saved state or Open it with its changes. Going back rebuilds the project as it was saved; the file on disk is written only when you save.
For a .qetdb, damage inside the file is repaired before any of this applies,
see the one-file project.
QElectroTech writes a lock file beside the project while it is open, named
.~<file name>.lock (for plant.qetz, .~plant.qetz.lock).
Opening. If another session holds the project, the dialog Project in use says who has it open, on which computer, since when, and whether that session was active in the last minutes. Your choices:
| Button | Meaning |
|---|---|
| Open read-only | Look at it without changing it. |
| Open anyway | Open it for editing next to the other session. |
Saving. If the file was changed on disk after you opened it, the save stops
with File changed on disk: Someone else changed <file> on disk at <time>
since you opened it.
| Button | Meaning |
|---|---|
| Save as a copy | Writes your version under another name and leaves their file alone. |
| Overwrite | Replaces their changes with yours. |
This is a safety net against a second person on a shared folder, not a merge: nothing combines the two sets of changes.
Two separate mechanisms, in Settings β General β Projects:
| Setting | What it does |
|---|---|
| Automatic backup of projects | Backups made every few minutes (applied at the next launch). After a crash they are offered at the next start. |
| Offer to restore automatic backups at start | Unticked, the backups are kept but not offered; the status bar says how many there are, and they are offered again once it is ticked. |
| After a crash, offer projects as they were after their last edit (experimental) | While a project is open, a copy is kept in QElectroTech's data folder, saved after every edit. If QElectroTech does not close normally, the next start offers that copy with the recovery files. |
The last one loses nothing between backups, because it is written after each edit, not every few minutes.
Reopen the projects of the last session at start, in the same settings page, reopens every project that was open when you last closed QElectroTech. Each project comes back on the folio it showed when you left, not on its first folio. A folio that no longer exists is ignored. Added in #1788.
Checked against build
b49ce16c4on 2026-11-27 (read from source: the labels, menus and defaults in the sections added on 2026-11-27, checked against that build's source; not run).
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
