Publishing my own little addition as FOSS is my way to give back to the community for being able to use a completely free CAE drawing software.

Thanks for compliments , you are welcome and thanks for your contribution.
BTW I can't create python package with your code.

BTW, I can't get anything on the flathub, strange same patch work in my kvm qemu Debian where I build my flatpak devel...,maybe you could try AppImage to your customer?
https://download.qelectrotech.org/qet/builds/AppImage/

wget https://download.qelectrotech.org/qet/builds/AppImage/0.90/QElectroTech_0.9-r7759-x86_64.AppImage
chmod +x QElectroTech_0.9-r7759-x86_64.AppImage

Just click now on file and QET 0.9 start.

Is portable version, you can have a lot of version on your machine.. 0.9, 0.100.0, etc!

See André Github repository:
https://github.com/acolomb/qet_terminal … in/samples

Example:
https://github.com/acolomb/qet_terminal … _-X20.html

Not able to open a *.qet file with double click under osx
https://github.com/qelectrotech/qelectr … issues/218

On OSX you can't launch the same application several times, so QtSingleApplication is useless.
Catching the FileOpenEvent is the only way ...

https://forum.qt.io/topic/80205/open-fi … ick-on-mac


But I just read this and we use itay-grudev SingleApplication:
https://github.com/itay-grudev/SingleAp … issues/136


Well, for the moment I haven't understood everything, pfiuou Apple complicates everything unnecessarily... nomicons/sad

in short, a lot of work just for this small function....

I  tried your HTML in qtdesigner tools (latest qtcreator package):

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Page Title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    </head>
    <body>
        <table border="1" cellspacing="0" cellpadding="5">
<thead>
                <tr height="22">
                    <th style="min-width:50px; max-width:200px;">Omschrijving</th>
                    <th width="50">Lichtpunt</th>
                    <th width="50">WCD</th>
                    <th width="50">3F</th>
                    <th width="50">Verdeel doos</th>
                    <th width="100">VA</th>
                    
</tr>
            </thead>
            <tbody>
                <tr height="22">
                    <td style="min-width:50px; max-width:200px;">Keuken WCD </td>
                    <td width="50">2 </td>
                    <td width="50"></td>
                    <td width="50"></td>
                    <td width="50">1 </td>
                    <td width="100">3600 </td>
                    
</tr>
            </tbody>
        </table>
    </body>
</html>

https://download.qelectrotech.org/qet/forum_img_2/richtexteditor_on_Qtdesigner.png
https://download.qelectrotech.org/qet/forum_img_2/richtexteditor_on_Qtdesigner22.png
https://download.qelectrotech.org/qet/forum_img_2/richtexteditor_on_Qtdesigner1.png

Same thing if I try with QET

https://download.qelectrotech.org/qet/forum_img_2/richtexteditor_on_Qtdesigner2.png

I found new Qt code of richtext here, but license changed and isn't compatible, I think?

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

https://github.com/qt/qttools/blob/dev/ … editor.cpp

I just found informations: Limited HTML styling as supported by the QT engine on the André Github repository: https://github.com/acolomb/qet_terminal_tables

https://doc.qt.io/qt-5/richtext-html-subset.html
https://docs.w3cub.com/qt~5.15/richtext-html-subset

Maybe it can help you?

The QET html text editor is a Qt code that is part of the designer that we integrated a long time ago... https://git.tuxfamily.org/qet/qet.git/t … s/richtext

History: https://git.tuxfamily.org/qet/qet.git/l … s/richtext


https://doc.qt.io/qt-6/designer-to-know.html
https://doc.qt.io/qt-6/images/designer-screenshot.png

FYI, Joshua work to integrate terminal generator in QET, see this topic and vidéos:
https://qelectrotech.org/forum/viewtopi … 788#p17788

Video when I try it first time:

Joshua explain it:


Part of the code is in version 0.100.0 dev but the progress of the code is done on the branch terminal_strip
https://git.tuxfamily.org/qet/qet.git/l … inal_strip

Hi André you are welcome.

Thanks a lot for your work. nomicons/wink
I haven't tried your code yet, but I'm doing a little comparison with the two-terminal plugin, see image:

https://download.qelectrotech.org/qet/forum_img_2/new-terminal_vs_plugin.png

BTW, Teminal plugin tips:
https://qelectrotech.org/forum/viewtopi … 073#p17073

Regards,
Laurent

1,010

(224 replies, posted in News)

Restore qetshapeitem::polygon contextMenuEvent
see:
https://qelectrotech.org/forum/viewtopi … 204#p18204

https://git.tuxfamily.org/qet/qet.git/c … a1387bfe77

https://qelectrotech.org/bugtracker/view.php?id=220 :
bugfix is surely the culprit of the disappearance of the function add and deletion of point on a polygon...

Edit fixed for polygon by revert commit 0a8376c189b4deff24d26dd26ddb3ceb1c9c8a4c

--- sources/diagramview.cpp
+++ sources/diagramview.cpp
@@ -1219,6 +1219,11 @@ QList<QAction *> DiagramView::contextMenuActions() const
 */
 void DiagramView::contextMenuEvent(QContextMenuEvent *e)
 {
+    QGraphicsView::contextMenuEvent(e);
+    if(e->isAccepted())
+    return;
+
+
     if (auto qgi = m_diagram->itemAt(mapToScene(e->pos()), transform()))
     {
         if (!qgi->isSelected()) {

But we need to try if it not re open bug 220?

git checkout fd2c210f49eb88570eeed9b0bfbbee901ecabc11 2020-02-02 15:33:19 (GMT)
Add QetGraphicsTableItem + entry "add nomenclature" in project menu
https://git.tuxfamily.org/qet/qet.git/c … 901ecabc11
ok


git checkout 610a44c7cd6446f9a1127b59b0ea3dc4a97881fc  2020-09-04 21:00:32 (GMT)
Removed some Q_UNUSED
https://git.tuxfamily.org/qet/qet.git/c … c4a97881fc
ok

git checkout 2d6bef71ae227865c55e7d6564130391014b7c9d   2020-09-22 09:41:47 (GMT)
DXF - Add some color
https://git.tuxfamily.org/qet/qet.git/c … 91014b7c9d
ok



--------------

2020-09-24    Add TODO compile var + Fix doxygen issue    Simon De Backer
2020-09-24    Try to fix Snap package with sqite3 new depend    Laurent Trinques
2020-09-23    Fix QRegularExpression pattern    Simon De Backer
2020-09-23    Fix QRegularExpression    Simon De Backer
2020-09-23    Fix QRegularExpression    Simon De Backer
2020-09-23    Fix QRegularExpression    Simon De Backer
2020-09-23    Fix Revert deprecated QRegExp    Simon De Backer
2020-09-23    Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/qet/qet    artgg7300
2020-09-23    updated hungarian files    artgg7300
2020-09-23    Fix commit "Change the way how the database is exported to file" :    Laurent Trinques
2020-09-22    Merge branch 'dxf'    David Varley
2020-09-22    Revert "Fix deprecated QRegExp"    Simon De Backer
2020-09-22    DXF - remove a couple of debug messages    David Varley
2020-09-22    DXF - Add some color

git checkout 36dbe654577bae797ab8e5375a580327d13444bc  2020-09-24 15:01:33 (GMT)
Add TODO compile var + Fix doxygen issue
https://git.tuxfamily.org/qet/qet.git/c … 27d13444bc
can't build

git checkout 184560cc5dccfb7638daca85e2740caacabb9389  2020-10-03 07:39:29 (GMT)
QT6: diagramitemweight set val to Font::Weight
https://git.tuxfamily.org/qet/qet.git/c … aacabb9389
ok


git checkout 12e301b887b64817ed81a20ca43fecf28c7bd9af 2020-10-17 18:25:30 (GMT)
replace 4 spaces by a tab
https://git.tuxfamily.org/qet/qet.git/c … f28c7bd9af
can't build


git checkout ec0b92ec1d9d93bc1986f2c48f11eb7f1a2ffffe  2020-10-18 08:45:05 (GMT)
La position précédente de HEAD était sur 184560cc5 QT6: diagramitemweight set val to Font::Weight
HEAD est maintenant sur ec0b92ec1 Fix : Filling color is not apply to polyline.
https://git.tuxfamily.org/qet/qet.git/c … 7f1a2ffffe
ok

git checkout b1eb59f3ea87a95825362525f35ec455affbff6b 2020-10-22 19:07:41 (GMT)
La position précédente de HEAD était sur ec0b92ec1 Fix : Filling color is not apply to polyline.
HEAD est maintenant sur b1eb59f3e Improve previous comit
https://git.tuxfamily.org/qet/qet.git/c … 55affbff6b
ok

git checkout d02b88488afe0b6547b31311d421267e58afe7b9 2020-11-22 10:07:47 (GMT)
La position précédente de HEAD était sur b1eb59f3e Improve previous comit
HEAD est maintenant sur d02b88488 German translation updated
https://git.tuxfamily.org/qet/qet.git/c … 7e58afe7b9
ok


git checkout d15443cf930fb068f8bb0bb81d5cfaca4b8ae37a 2020-12-10 17:44:03 (GMT)
Wip Fix preprocessor on Cmake
https://git.tuxfamily.org/qet/qet.git/c … ca4b8ae37a
can't build

git checkout c88d1ef6bb027e209acb43d9c63a75de8eb509ac 2020-12-12 23:40:43 (GMT)
La position précédente de HEAD était sur d02b88488 German translation updated
HEAD est maintenant sur c88d1ef6b Refactoring Cmake
https://git.tuxfamily.org/qet/qet.git/c … de8eb509ac
ok

git checkout f6d777e2f76b0136670923f5b79b3bd22f30ca6e 2020-12-17 20:42:18 (GMT)
La position précédente de HEAD était sur 34baceb8d Fix bug 175
HEAD est maintenant sur f6d777e2f Mod DynamicTextFieldEditor
can't build

it checkout 2e543dd1f70cba6666a6d1eaa4b83252996e9a9a 2020-12-18 16:05:41 (GMT)
La position précédente de HEAD était sur f6d777e2f Mod DynamicTextFieldEditor
HEAD est maintenant sur 2e543dd1f Add create translation .ts file on Cmake
ok

git checkout 5730559ed09834ee5a63192bb9ad701d52acc298     2020-12-31 13:19:52 (GMT)
La position précédente de HEAD était sur 4f455a532 General configuration page : set 'appearance' as default tab
HEAD est maintenant sur 5730559ed Updated Czech elements translations.
ok


git checkout bf9123f9b534d8af722ecb98e020ef707e4d7a68 2021-01-01 14:28:41 (GMT)
La position précédente de HEAD était sur 5730559ed Updated Czech elements translations.
HEAD est maintenant sur bf9123f9b Fix xml in Element (Catch from QElectroTech_Element_Updater)
ok



git checkout 0a8376c189b4deff24d26dd26ddb3ceb1c9c8a4c  2021-01-02 19:11:47 (GMT)
La position précédente de HEAD était sur 6fcb0fec0 Updated Czech translations of elements.
HEAD est maintenant sur 0a8376c18 Fix bug 220
polygon add point disappears ..............????

git checkout 34baceb8da926d5fd88a45e2311e89ea7bc9cd7f  2021-01-03 22:30:48 (GMT)
La position précédente de HEAD était sur 0a8376c18 Fix bug 220
HEAD est maintenant sur 34baceb8d Fix bug 175
polygon add point disappears ..............????


git checkout 4f455a5328bf6e6d30e86379d16d83e9192dafdf 2021-01-08 17:26:55 (GMT)
La position précédente de HEAD était sur 2e543dd1f Add create translation .ts file on Cmake
HEAD est maintenant sur 4f455a532 General configuration page : set 'appearance' as default tab
polygon add point disappears ..............????

git checkout 6fcb0fec083da868b62d20f3c166cbd1248a34ef     2021-01-13 20:25:24 (GMT)
La position précédente de HEAD était sur c88d1ef6b Refactoring Cmake
HEAD est maintenant sur 6fcb0fec0 Updated Czech translations of elements.
https://git.tuxfamily.org/qet/qet.git/c … d1248a34ef
polygon add point disappears ..............????



git checkout d04bccc384aa8b9dc16e4432ac72ccb787b2508b 2021-02-06 17:33:42 (GMT)
Update Copyright date
https://git.tuxfamily.org/qet/qet.git/c … b787b2508b
polygon add point disappears ..............????



It was not easy to find after all this time where the problem came from after all these thousands of commits..

I saw it 's work on Date : Jan 9 2020
Git history:
https://github.com/qelectrotech/qelectr … peitem.cpp
https://git.tuxfamily.org/qet/qet.git/l … peitem.cpp

For font saw your settings text et independent text in Preferences menu, tab text in my example I switch to Arial font:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><title>Page Title</title><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Arial'; font-size:9pt; font-weight:400; font-style:normal;">
<table border="1" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;" cellspacing="0" cellpadding="5"><thead>
<tr>
<td>
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Omschrijving</span></p></td>
<td width="50">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Lichtpunt</span></p></td>
<td width="50">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">WCD</span></p></td>
<td width="50">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">3F</span></p></td>
<td width="50">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Verdeel doos</span></p></td>
<td width="100">
<p align="center" style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">VA</span></p></td></tr></thead>
<tr>
<td>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Keuken WCD </p></td>
<td>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2 </p></td>
<td></td>
<td></td>
<td>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1 </p></td>
<td>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3600 </p></td></tr></table></body></html>

It's only possible on element editor to add or remove point in a polygon line. Not possible on diagram editor.
That not changed is like 0.8 version.

deneruxi wrote:

I am using Ubuntu 23.4 and i have the same problem
Anyone know How to fix this?

Nvidia driver's installed?

It's html 4 tags only and not support css
https://qelectrotech.org/forum/viewtopic.php?id=1590
https://qelectrotech.org/forum/viewtopi … 5765#p5765

I don't know if it's work with excel, but ok with Libreoffice, see these vidéo:
https://youtu.be/r2U2uAi7FfI

Exemple ci-joint

https://qelectrotech.org/forum/viewtopi … 261#p18261

https://download.qelectrotech.org/qet/forum_img_2/jump.png

1,022

(10 replies, posted in Terminal block generator)

https://github.com/qelectrotech/qelectr … rce-mirror

Story
The QElectroTech project was founded in 2007 by two french students, Xavier and Benoit.
Xavier developed the base application itself and made all technical choices about the development.
The first version of QET (0.1) was released on 09.03.2008.
However, both Xavier and Benoit do not participate anymore in the project since 2013.

Following this period, new developers and contributors took over the project and kept it alive.
The development and the many translations are actively maintained.
New functionalities and evolutions are planned to make QET ever better.

Nowadays, QET is not only used by many individuals, teachers and students but also by professional electricians and companies all over the world.

1,023

(10 replies, posted in Terminal block generator)

Je viens de m'apercevoir que vous palez Français ahah..

oui, c'est un logiciel Français.. avec des contributeurs de tous les pays.

1,024

(10 replies, posted in Terminal block generator)

Si j'ai pu t'aider, c'est tant mieux.

Cordialement,
Laurent

1,025

(10 replies, posted in Terminal block generator)

On the screenshot, you can see that i name my terminal block like this : X3:XIO-XX.X

It 's bad!!
Your block is "XIO:X"  like : XIO:1 XIO:2 etc. And use un interger for ID not use decimal !!!
Also hacks python code qet_tb_generator for your functions you want to use.

Source here: https://github.com/raulroda/qet_tb_generator-plugin

https://github.com/raulroda/qet_tb_gene … gin/pull/3