Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - g.theodoroy

#1
Snapshots / Re: FET-7.7.2 snapshot available
January 22, 2026, 07:55:18 PM
s+="<table align=\"center\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse:collapse\">";
#2
Snapshots / Re: FET-7.7.2 snapshot available
January 22, 2026, 05:50:23 PM
Set height of middle row

<tr height="2">



Try

<tr></tr> (with no <td>s inside )

or

<tr height="2"></tr> (with no <td>s inside )

or

<tr height="2"><td colspan="[daysCount]"></td></tr> (one single td - no content)

or

<tr height="2"><td colspan="[daysCount]">&nbsp;</td></tr> (one single td )


I really have no experience with Qttextwidget


PS:

It does not compile in my Manjaro box

Error:
----------------------------------------

In file included from interface/fetmainform.cpp:61:
interface/humanreadabledataform.h:20:10: fatal error: ui_humanreadabledataform_template.h: No such file or directory
  20 | #include "ui_humanreadabledataform_template.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:3972: ../tmp/interface/fetmainform.o] Error 1
make[1]: Leaving directory '/home/george/FET/fet-7.7.2-snapshot-22-jan-2026-16_40/src'
make: *** [Makefile:48: sub-src-src-pro-make_first] Error 2

---------------------------------
#3
Suggestions / Re: preview the table
January 20, 2026, 08:29:43 AM
chatgpt query 2

create table with cell width 5px font-size 3px a colymn with value x , bgcolor red and six columns with nbsp bgcolor green and 7 rows for Qttextwidget



<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5" bgcolor="red" align="center">
      <font size="1">x</font>
    </td>
    <td width="5" bgcolor="green">&nbsp;</td>
    <td width="5" bgcolor="green">&nbsp;</td>
    <td width="5" bgcolor="green">&nbsp;</td>
    <td width="5" bgcolor="green">&nbsp;</td>
    <td width="5" bgcolor="green">&nbsp;</td>
    <td width="5" bgcolor="green">&nbsp;</td>
  </tr>

    ...

</table>

🔍 Notes (Important for Qt)

    width="5" → Works

    font-size:3px → ❌ Ignored

    <font size="1"> → ✅ Smallest reliable font

    bgcolor → ✅ Supported

    &nbsp; → Prevents cell collapse

Qt does not support true 3px fonts, the minimum is roughly 6–7 px, depending on DPI.
#4
Suggestions / Re: preview the table
January 20, 2026, 08:21:19 AM
from ChatGpt

query:

create table with cell width 5px for Qttextwidget


answer:

Best Working Solution (Use fixed-width table + column width)

Qt supports table formatting via HTML attributes, not CSS.

Example HTML for QTextEdit::setHtml():
<table border="1" cellspacing="0" cellpadding="0">
    <tr>
        <td width="5">&nbsp;</td>
        <td width="5">&nbsp;</td>
        <td width="5">&nbsp;</td>
    </tr>
</table>


✔ width="5" works
✔ No CSS required
✔ Compatible with Qt rich text
#5
Suggestions / Re: preview the table
January 20, 2026, 08:00:59 AM
Set value to &nbsp; (non-breaking space)


Or set width of <td> table cell for fixed width
#6
Suggestions / Re: preview the table
January 20, 2026, 06:42:38 AM


In Qt documentation
----------------------------------------
Quotehttps://doc.qt.io/qt-6/richtext-html-subset.html

Widgets automatically detect HTML markup and display rich text accordingly. For example, setting a label's text property with the string "<b>Hello</b> <i>Qt!</i>" will result in the label displaying text like this: Hello Qt!

When HTML markup is used for text, Qt follows the rules defined by the HTML 4 specification. This includes default properties for text layout, such as the direction of the text flow (left-to-right) which can be changed by applying the dir attribute to blocks of text.

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

Create html table as text of Qtextwidget

<table>
    <tr>
          <td bgcolor="red">X</td><td   bgcolor="green"></td>
    /tr>
</table>
#7
Suggestions / Re: preview the table
January 19, 2026, 06:32:20 PM
You dont need to "invent wheel" once more !!!

You have data (D1H1.D2H1...)

You have ui in another form (QtableWidget)


Just conditionally show QtableWidget (only view - not edit)

-------------------------------------------
checkboxes           QtextWidget
                              QtextWidget
QListWidget          QtextWidget
QListWidget          QtextWidget
QListWidget          QtextWidget
QListWidget          QtextWidget
QListWidget
QListWidget         QtableWidget
QListWidget         QtableWidget
QListWidget         QtableWidget

Buttons Buttons Buttons Buttons
------------------------------------------
#8
Get Help on Your Input File / Re: Help Me Please
December 16, 2025, 08:46:56 AM
Just a proposal to start with
#9
Spanish / Español / Re: Modificar un horario generado
December 01, 2025, 12:03:09 PM
Fet-edit+print tries to solve this. You may give it a try.

https://lalescu.ro/liviu/fet/forum/index.php?topic=6351.0
#10
FET - edit + print / Re: FET - edit + print
October 31, 2025, 05:13:10 AM
Added check functionality for room conflicts.

Confirm substitution message has been edited.



Προστέθηκε έλεγχος αιθουσών κατά την τροποποίηση.

Τροποποιήθηκε το μήνυμα που ζητά επιβεβαίωση για αλλαγή μαθήματος.
#11
Ωραία η πρόταση του @xtzetzias
#12
Απ ότι φαίνεται δεν δουλεύει.

Προσπάθησε να κάνεις το εξής

Γ1-> Γανθ1,Γθ1,Γυ1,Γοικ1-1,Γοικ1-2 (ή Γοικ11, Γοικ12)
Γ2->Γανθ2,Γθ2,Γυ2,Γοικ2-1,Γοικ2-2 (ή Γοικ21, Γοικ22)
Γ3->Γανθ3,Γθ3,Γυ3,Γοικ3-1,Γοικ3-2 (ή Γοικ31, Γοικ32)

ώστε κάθε όνομα να αντιστοιχεί μόνο στους συγκεκριμμένους μαθητές.


Συνθέτεις όπως σε βολεύει μετά

Γθ1,Γυ1,Γθ2,Γυ2 -> Φυσική

Γυ1,Γυ2,Γυ3 -> Βιολογία

Γθ1,ΓΟικ1-1,ΓΟικ2-1,ΓΟικ3-1 -> Μαθηματικά

κλπ
#13
Πρέπει να ξανασυνθέσεις τα τμήματα κατεύθυνσης.

πχ

Έχω 3 τμήματα Γεν Παιδείας

Γ1, Γ2, Γ3

Κάνω τα υποτμήματα

Γ1 -> ΓΑνθ1, ΓΘετ1, ΓΠληρ1
Γ2 -> ΓΑνθ2, ΓΘετ2, ΓΠληρ2
Γ3 -> ΓΑνθ3, ΓΘετ3, ΓΠληρ3


Συνθέτω πάλι

ΓΑνθ1+ΓΑνθ2+ΓΑνθ3 -> ΛΑΤΙΝΙΚΑ
ΓΘετ1+ΓΘετ2+ΓΘετ3 -> ΦΥΣΙΚΗ
...


#14
FET - edit + print / Re: FET - edit + print
September 28, 2025, 03:00:09 PM
Ρίξε μια ματιά στον υπερσύνδεσμο:

https://lalescu.ro/liviu/fet/forum/index.php?topic=6366.msg35363#msg35363

Check the above link
#15
FET - edit + print / Re: FET - edit + print
September 28, 2025, 12:01:25 PM
Μπορείς να αποθηκεύσεις το αρχείο .fet και να το ανοίξεις με το FET.

You can save-download .fet file and open it with FET.