<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[QElectroTech — Code]]></title>
		<link>https://qelectrotech.org/forum/index.php</link>
		<atom:link href="https://qelectrotech.org/forum/extern.php?action=feed&amp;fid=17&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent topics at QElectroTech.]]></description>
		<lastBuildDate>Thu, 12 Nov 2026 15:45:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Prototype: simulating control circuits directly from .qet files]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3237&amp;action=new</link>
			<description><![CDATA[<p> Hello everyone,</p><p>I&#039;m Tony, an instructor of industrial mechatronics at SENAI (Brazil). My students learn contactor-based control circuits, and most of them use CADe_SIMU on Windows to simulate them. There is no free equivalent on Linux, so I started a small experiment: a simulator that reads QElectroTech .qet files directly.</p><p>What works today (command-line prototype, Python, no dependencies):<br />- reads elements, conductors and master/slave links from the .qet XML<br />- simulates push buttons, coils and NO/NC contacts (self-holding, interlocking, stop)<br />- push button type (NO/NC) is inferred from IEC terminal numbers (13-14 / 21-22)</p><p>Example: reversing starter with interlock, drawn in QET 0.100.0:</p><div class="codebox"><pre><code>&gt; S1 -&gt; K1 = ON, K2 = off
&gt; S2 -&gt; K1 = ON, K2 = off (interlock blocks K2)
&gt; S0 -&gt; K1 = off, K2 = off
&gt; S2 -&gt; K1 = off, K2 = ON</code></pre></div><p>Repository (GPL-3.0): <a href="https://github.com/tonymarim/qet-simulador">https://github.com/tonymarim/qet-simulador</a><br />Two example .qet files are included.</p><p>Disclosure: the prototype was written with the help of an AI assistant (Claude). I reviewed it and tested it with my own circuits.</p><p>Some questions for the community:<br />1. Has anyone worked on simulation on top of .qet files before? I don&#039;t want to duplicate effort.<br />2. Is relying on master/slave links plus IEC terminal numbering a sound approach? Or is there a more reliable way to identify NO/NC push buttons in the element definitions?<br />3. Would there be interest in this eventually becoming a plugin, like qet_tb_generator?</p><p>Any feedback is welcome. And thank you for QElectroTech!</p><p>Tony </p>]]></description>
			<author><![CDATA[null@example.com (tonyemersonmarim)]]></author>
			<pubDate>Thu, 12 Nov 2026 15:45:01 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3237&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[separate Label and Terminalnumber]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3230&amp;action=new</link>
			<description><![CDATA[<p> <a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/1584">https://github.com/qelectrotech/qelectr … /pull/1584</a> </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Thu, 05 Nov 2026 13:07:07 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3230&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[List of Materials]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3206&amp;action=new</link>
			<description><![CDATA[<p> <a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/1088#issuecomment-5865458607">https://github.com/qelectrotech/qelectr … 5865458607</a> </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Wed, 30 Sep 2026 09:23:57 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3206&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Subject: Folder/Category system for organizing sheets]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3177&amp;action=new</link>
			<description><![CDATA[<p> Hello everyone,</p><p>I&#039;d like to discuss a feature idea for organizing sheets in larger projects.</p><p>Current situation: In big projects with many sheets, the list becomes long and hard to navigate. All sheets are shown in a flat list.</p><p>Proposed feature:</p><p>Create folders/categories to group sheets (e.g., &quot;General&quot;, &quot;Power&quot;, &quot;Control&quot;)<br />Organize sheets in a tree structure in the left panel<br />Move sheets between folders via drag &amp; drop or right-click menu<br />Each sheet gets a &quot;category&quot; attribute in the .qet file<br />Table of contents can show which category a sheet belongs to<br />Additional ideas:</p><p>Folders can have default properties (titleblock, border) for new sheets created inside<br />When creating new sheets (via menu, right-click, or from table of contents), they go into the selected folder<br />Copy/paste sheets between different folders<br />Backward compatible: old files without categories still work<br />Questions for discussion:</p><p>Is this something the project wants/needs?<br />Any suggestions for the implementation approach?<br />Should categories be visible in the tab bar (e.g., &quot;Power\Sheet 1&quot;)?<br />Looking forward to your feedback! </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Thu, 13 Aug 2026 14:20:57 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3177&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Two Changelog Files in qelectrotech-source-mirror]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3176&amp;action=new</link>
			<description><![CDATA[<p> The qelectrotech-source-mirror contains two &#039;changelog&#039; files: ChangeLog.md and ChangeLog.MD. <br />Since Windows is not case-sensitive, this causes problems in the Qt IDE on Windows. </p>]]></description>
			<author><![CDATA[null@example.com (achim)]]></author>
			<pubDate>Thu, 06 Aug 2026 07:05:46 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3176&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[New feature terminal text]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3174&amp;action=new</link>
			<description><![CDATA[<p> @Kellermorph</p><p>Die neuen Terminaltexte sind echt genial. Ich hatte das auch schon mal versucht, <br />bin damit aber königlich gescheitert.<br />Drei Dinge:<br /> - mit der Maus kann ich den Text ohne das Terminalzeichen bewegen,<br />&nbsp; &nbsp;bewege ich den Text mit der Tastatur bewegt sich auch das Terminalzeichen<br /> - bei mehreren markierten Terminaltexten bewegt sich immer auch das Terminalzeichen,<br />&nbsp; &nbsp;egal ob Maus oder Tastatur<br /> - wie schon bei den PLC-Elementen erwähnt: kannst Du für die Textformate die globalen <br />&nbsp; &nbsp;Einstellungen übernehmen oder die gemachten Einstellungen von Format und Größe in <br />&nbsp; &nbsp;irgendeiner Form abspeichern. <br />&nbsp; &nbsp;Wenn ich zum Beispiel ein vorhandenes Symbol mit den neuen Terminaltexten update, <br />&nbsp; &nbsp;muss ich für jedes Terminal Textformat und Größe ändern.</p><p>The new terminal texts are really great. I had tried this myself at one point,<br />but failed miserably.<br />Three things:<br />- I can move the text with the mouse without moving the terminal symbol,<br />&nbsp; but if I move the text using the keyboard, the terminal symbol moves too.<br />- When multiple terminal texts are selected, the terminal symbol always moves as well,<br />&nbsp; regardless of whether I use the mouse or the keyboard.<br />- As previously mentioned regarding PLC elements: could you adopt the global<br />&nbsp; settings for the text formats, or allow the format and size settings to be<br />&nbsp; saved in some way? <br />&nbsp; For example, when I update an existing symbol with the new terminal texts,<br />&nbsp; I have to change the text format and size for every single terminal. </p>]]></description>
			<author><![CDATA[null@example.com (achim)]]></author>
			<pubDate>Mon, 03 Aug 2026 11:11:29 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3174&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[PLC-Manager]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3173&amp;action=new</link>
			<description><![CDATA[<p> <a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/562">https://github.com/qelectrotech/qelectr … r/pull/562</a></p><p>I noticed the error with the connections.<br />I&#039;ll check it again and upload the fix. </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Fri, 31 Jul 2026 12:31:43 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3173&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED]Error at Compile: private/qpdf_p.h: No such file or directory]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3172&amp;action=new</link>
			<description><![CDATA[<p> Hello,</p><p>I&#039;ve been trying to compile QET, but I got the following error.</p><p><em>FatalError: private/qpdf_p.h: no such file or directory.<br />from ../sources/cli_export.cpp:35:10<br />#include &lt;private/qpdf_p.h&gt;<br />+<br />from ../sources/pdf_links.cpp:28:10<br />#include &lt;private/qpdf_p.h&gt;<br /></em></p><p>I can&#039;t find this file anywhere in the project or repo.<br />My distrib is based upon Ubuntu 24.04.3</p><p>Do you have ideas to where this file should be referenced to?<br />Thanks in advance. </p>]]></description>
			<author><![CDATA[null@example.com (us195)]]></author>
			<pubDate>Mon, 27 Jul 2026 04:26:21 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3172&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Implement slave contact groups]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3169&amp;action=new</link>
			<description><![CDATA[<p> Slave contact groups: master defines contact groups (type, subtype, contacts, terminals, labels T1-T20), slaves are validated and assigned when linking<br />ContactGroupSelectionDialog with type validation, grayed-out rows for used/incompatible groups<br />Linking supported from both master and slave side<br />Terminal labels are transferred from master to slave and displayed on the diagram</p><p><a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/545">https://github.com/qelectrotech/qelectr … r/pull/545</a> </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Mon, 20 Jul 2026 16:35:01 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3169&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Folio-level Mirror and Flip of Elements — ready for review]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3157&amp;action=new</link>
			<description><![CDATA[<p> Hi Laurent, plc-user and everyone,</p><br /><p>I&#039;ve implemented <strong>folio-level Mirror and Flip</strong> of elements over the last week, as asked for in a few old threads, <a href="https://qelectrotech.org/forum/viewtopic.php?pid=14955#p14955">here</a> and <a href="https://qelectrotech.org/forum/viewtopic.php?id=930">here</a>, and also wanted by me for a long time (for creating avionics equipment interconnect diagrams). This complements plc-user&#039;s earlier work, which added rotate/mirror/flip of graphical primitives <em>within the Element Editor</em>. The key difference and benefit: mirror/flip now also works at <em>folio</em> level, live and non-destructively, on a placed element instance — so there&#039;s no longer a need to create and maintain otherwise-identical left/right duplicate .elmt files in the symbols collection. <img src="https://qelectrotech.org/forum/img/smilies/nomicons/smile.png" width="20" alt="nomicons/smile" /></p><p>It&#039;s been tested very thoroughly at code level (qDebug probes through every save/reload cycle) and quite substantially while building the demo .qet and its PDF. I believe it&#039;s now ready for review, with a view to merging.</p><p>It&#039;s available on my fork:<br /><a href="http://github.com/hairykiwi/qelectrotech-source-mirror/tree/folio-mirror-flip">github.com/hairykiwi/qelectrotech-sourc … irror-flip</a><br />(branch: folio-mirror-flip, built against: qt6_cmake_joshua)<br />I don&#039;t believe anything in it depends on Qt6, however I&#039;ve only built it under Qt6.</p><br /><p><strong>Attachments</strong><br />I&#039;d normally attach these directly, but the forum&#039;s anti-bot <em>still</em> has me flagged <img src="https://qelectrotech.org/forum/img/smilies/nomicons/unsure.png" width="20" alt="nomicons/unsure" /><br />Here&#039;s a Dropbox link to the example .qet, its PDF output, and a technical brief (generated with Claude AI): <br /><a href="https://www.dropbox.com/scl/fo/yywangae59mitmviz1u8d/AO3T7e9MgZSCpcWY-bLTuB0?rlkey=asg4e48p8b3gdy57im6j9fwev&amp;dl=0">https://www.dropbox.com/scl/fo/yywangae … v&amp;dl=0</a></p><br /><p>Below is a mostly not-so-technical summary.</p><br /><p><strong>What works</strong></p><p>Mirror and Flip on placed elements at folio level, in any combination with Rotate (90/180/etc).</p><p>Conductors stay correctly connected to their terminals through every transform — a conductor &quot;reset&quot; may be needed to tidy routing, but connections are preserved.</p><p>Dynamic element text (including rotated text, and grouped rotated text) survives mirror/flip and, importantly, round-trips correctly through save/reload.</p><p>One thing worth noting for backward compatibility: mirror/flip only sets a flag in the target &lt;element&gt; entry in the .qet. I believe older QET versions should simply ignore such flags — so files created in this branch still open in previous versions, and older files load fine here.</p><p>The attached demo project (.qet + PDF) steps through it: orientation tracking across all transform permutations, rotated and grouped-rotated dynamic text, conductors-stay-connected, non-dynamic text handling, and a basic industrial-schematic example built from the current QET symbols collection.</p><br /><p><strong>Two minor remaining niggles</strong></p><p>1. After rotation, an element containing grouped rotated text will initially have that text rendered on screen as overlapping lines (see the screenshot in the Attachments). Following a save/reload cycle the layout self-corrects and stays correct. This is a separate issue from the fixed save-corruption bug (more on that below). I suspect grouped-rotated text inside an additionally rotated (and/or mirrored/flipped) element will arise so infrequently that few people will ever notice it. That said, it&#039;s on my list of tracked issues, saved for some rainy day.<br />2. The mirror/flip feature really wants any element text to be the dynamic text type. Static / unformatted simple text will mirror/flip as a graphic (i.e. it reverses), which is correct behaviour but usually not what you want for a label. Section 3 of the demo highlights this.</p><br /><p><strong>The big bug — fixed!</strong></p><p>I doubt I could have created this feature without AI coding assistance, but the really substantial issue I leveraged Claude AI + Claude Code for was a save/reload corruption: grouped rotated dynamic text was being serialised through a &quot;visual-preserving detach&quot; — a routine meant for genuinely ungrouping text, which preserves its on-screen position as it detaches. On a mirrored element that routine baked the element&#039;s mirror into the child text coordinates, so on reload the mirror got applied twice and the text drifted by one group-width. That&#039;s fixed (in commit 05bcba506): now, each grouped child&#039;s geometry is serialised directly, in one frame, with no reflection baked in — the mirror stays a live flag, recomputed on load, never stored in coordinates. The mechanism and verification matrix are written up in the attached PDF for anyone who wants the detail.</p><br /><p><strong>A couple of related feature ideas</strong></p><p>While testing mirror/flip (+ rotate), I found it very easy to lose track of an element&#039;s original orientation. That could matter a lot for industrial symbols that either should not, or must not, be mirrored or flipped. So I think these are worth implementing before too long, for convenience and preserving user sanity <img src="https://qelectrotech.org/forum/img/smilies/nomicons/wink.png" width="20" alt="nomicons/wink" /></p><p>1. A non-destructive transform reset — clear all Rotate/Mirror/Flip on an element back to its original on-disk orientation while keeping any text the user has added.<br />2. Mirror/Flip during placement, the way Rotate already works while inserting. The non-destructive reset above should work during placement too.</p><p>One housekeeping note: my branch carries a small local main.cpp change (an app-name tweak for my own build) that should be ignored/reverted before merge — it&#039;s not part of the feature.</p><br /><p>I&#039;m happy to walk through any of it, rebase as needed, and split into smaller commits if that helps review.</p><br /><p>hairy_kiwi</p><br /><p><strong>EDIT: Update on Grouped-rotated text</strong><br />Since posting, I&#039;ve been testing the trickier combinations more closely and want to flag two rough edges, both confined to grouped rotated text and both to the live, unsaved on-screen render — the saved file is always correct, and once you save and reopen, the element displays and prints/exports correctly. Persisted data is never affected.</p><p>Grouped rotated text can momentarily overlap on screen while rotating an element (at odd 90° steps from the last-saved orientation). This looks like it may be independent of mirror/flip — i.e. possibly a pre-existing rotation rendering issue — and I&#039;m investigating it separately.<br />Mirror/flip of grouped rotated text on an element that&#039;s also rotated (90°/270°) isn&#039;t yet transforming correctly in the live view. At 0° it&#039;s fine; the rotated combination needs more work, likely the same fix I applied to ungrouped rotated text extended to the grouped path.</p><p>Both are low-impact in practice (grouped rotated text is uncommon, the rotated+mirror/flip combination more so), and the feature is fully correct for the common cases. I&#039;ll post another update here as and when I have time. Details in the technical brief. </p>]]></description>
			<author><![CDATA[null@example.com (hairy_kiwi)]]></author>
			<pubDate>Fri, 12 Jun 2026 18:53:25 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3157&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Potential Isolation option for terminals]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3152&amp;action=new</link>
			<description><![CDATA[<p> <a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/471">https://github.com/qelectrotech/qelectr … r/pull/471</a> </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Thu, 28 May 2026 07:35:54 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3152&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[cable management]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3144&amp;action=new</link>
			<description><![CDATA[<p> moved from</p><p><a href="https://qelectrotech.org/forum/viewtopic.php?id=3143">https://qelectrotech.org/forum/viewtopic.php?id=3143</a> </p>]]></description>
			<author><![CDATA[null@example.com (achim)]]></author>
			<pubDate>Sat, 09 May 2026 20:49:51 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3144&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Introduction: Cable Component Type]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3134&amp;action=new</link>
			<description><![CDATA[<p> Hi all</p><p>Under the conductor properties, there’s already a placeholder for a cable. How did you envision this? My idea would be to create a new component category for cables. That way, you’d have a component for the cable and could integrate it directly into the drawing. If the terminals are named with the wire designation, the terminal block plugin for terminal diagrams could check directly: Am I connected to a cable? Which wire is there? Then this could be nicely automated.</p><p>If this point is accepted by you, a function could be built to create a cable list from all cables, including start and end points.</p><p>What do you think? If that&#039;s okay, I&#039;ll get to work on creating it. </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Thu, 09 Apr 2026 11:44:25 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3134&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Automatic Terminal Numbering Tool]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3133&amp;action=new</link>
			<description><![CDATA[<p> I&#039;ve attached the tutorial video in which I explain my new feature for automatically numbering clamps</p><p><a href="https://github.com/qelectrotech/qelectrotech-source-mirror/pull/449">https://github.com/qelectrotech/qelectr … r/pull/449</a> </p>]]></description>
			<author><![CDATA[null@example.com (Kellermorph)]]></author>
			<pubDate>Thu, 09 Apr 2026 10:46:57 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3133&amp;action=new</guid>
		</item>
		<item>
			<title><![CDATA[Error on github qet-source-mirror]]></title>
			<link>https://qelectrotech.org/forum/viewtopic.php?id=3126&amp;action=new</link>
			<description><![CDATA[<p>I can no longer clone the QElectroTech repository.<br /> The cloning process ends with an error message:</p><p>C:\Users\xxx\xxx\xxx\xxx&gt; git clone --recursive <a href="https://github.com/qelectrotech/qelectrotech-source-mirror.git">https://github.com/qelectrotech/qelectr … mirror.git</a><br />Cloning into &#039;qelectrotech-source-mirror&#039;...<br />remote: Enumerating objects: 153432, done.<br />remote: Counting objects: 100% (176/176), done.<br />remote: Compressing objects: 100% (101/101), done.<br />remote: Total 153432 (delta 105), reused 99 (delta 71), pack-reused 153256 (from 2)<br />Receiving objects: 100% (153432/153432), 133.84 MiB | 9.72 MiB/s, done.<br />Resolving deltas: 100% (128382/128382), done.<br />Updating files: 100% (1627/1627), done.<br />Downloading doc/QElectroTech.qch (530 MB)<br />Error downloading object: doc/QElectroTech.qch (7b77982): Smudge error: Error downloading doc/QElectroTech.qch (7b7798233e8251baac7717d4b0f991ad5fdf23a76d9fbe864d363e3b93458560): batch response: This repository exceeded its LFS budget. The account responsible for the budget should increase it to restore access.</p><p>Errors logged to &#039;C:\xxx\xxx\xxx\xxx\xxx\qelectrotech-source-mirror\.git\lfs\logs\20260317T120632.3963731.log&#039;.<br />Use `git lfs logs last` to view the log.<br />error: external filter &#039;git-lfs filter-process&#039; failed<br />fatal: doc/QElectroTech.qch: smudge filter lfs failed<br />warning: Clone succeeded, but checkout failed.<br />You can inspect what was checked out with &#039;git status&#039;<br />and retry with &#039;git restore --source=HEAD :/&#039;</p><br /><br /><p>The problem seems to be the size of the &quot;QElectroTech.qch&quot; file<br />in the doc directory.</p>]]></description>
			<author><![CDATA[null@example.com (achim)]]></author>
			<pubDate>Tue, 17 Mar 2026 11:20:48 +0000</pubDate>
			<guid>https://qelectrotech.org/forum/viewtopic.php?id=3126&amp;action=new</guid>
		</item>
	</channel>
</rss>
