preview the table

Started by GUEFFAZ ABDELKRIM, January 19, 2026, 09:30:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GUEFFAZ ABDELKRIM


Liviu Lalescu

Dear GUEFFAZ, and @Volker Dirr , and @Vangelis Karafillidis , and to everybody: it is a good suggestion. I'll think of it. But what do you think if we could simply list a small text matrix of X's and O's? Or we could use some nice UTF-8 special characters? Suggestions?

The thing is that drawing the complete table is not in my experience, is complicated, and the table might be too large.

GUEFFAZ ABDELKRIM

دائما الافكار تتحسن بالتطبيق . أكيد ستصل الى حل هذا الاقتراح .

Volker Dirr

Aa ASCII art? Sounds fine. The "only" problem is, that the characters must have the same width or a font with non-proportional letters.

Liviu Lalescu

#4
Yes, art, but UTF, not ASCII. Maybe they have some nice colored Xs and 0s with same width. And also same frame lines.

Volker Dirr

Yes, UTF-8 characters of course. (But I never heard the term "UTF-ART". Other guys always call it only "ASCII-Art".)
I think that is a good variant.

Liviu Lalescu

Great! (Volker)

@Darren McDonald , @g.theodoroy , @gradgrind , maybe you have ideas/suggestions? Or other forum/FET users?

Liviu Lalescu

We might need to have two sets of symbols: without colors, and with colors, and this setting will be the one that the user chose when adding the constraints (or when modifying?).

g.theodoroy

#8
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
------------------------------------------

Liviu Lalescu

You are right, George, but:

- that table needs to be shown scaled down, and I am not sure how to do that;

- the text of the constraint might be useful to be copy/pasted, like for instance if the user wants to print all time constraints and uses this trick: selects all constraints, Remove, and copy/paste that text.

Volker Dirr

✓ or ✔ and ✗ or .
☒ and ☐
● and ○
★ and ☆
...

maybe select able in the setting.

Liviu Lalescu

#11
Great! I think the second (squares) is suitable for not available times and preferred times. For selection of slots, maybe the circles (are they the same size?). Or, do they have a square with a check box in it?

We might also need a horizontal line and a vertical one (for a big square around the whole table and to divide a day in the Mornings-Afternoons mode).

Liviu Lalescu

This is how it looks (attached screenshot):

How could we make the table more compact (there is too much space between the rows...)?

Liviu Lalescu

#13
Hmm... not so easy if there are many days... we get a wraparound...

It is possible to deactivate the wraparound - would that be a solution? But note that all the text of the detailed description of the constraint will not wrap around anymore, so you might need to scroll.


Volker Dirr

TextEdit->setWordWrapMode(QTextOption::NoWrap);