How can I create a nice table to show data in qt with css?
-
Hi
Same way as this poster.
https://forum.qt.io/topic/73605/custom-list-viewWhat solution is the best, also depends on how many row you must handle.
The cleanest and most solid is using Delegates but its also the most complicated.I do not think its possible to make such list using css for widgets :)
-
@MhM93
Well Delegates are designed for that. while you most likely can get it too look like
that with css
editing and clicking might not be what you want.If you dont need to have many, u can cheat as discussed in
https://forum.qt.io/topic/73605/custom-list-view -
@MhM93 as far as I know CSS was invented as an additional technology that fix HTML, because HTML have not ideal architecture. QML initially made without these drawbacks, due to the inheritance styles of parent components and reactive components architecture. Therefore you shouldn't use CSS in QML.