How to layout CChartViews in a table
-
I'm looking for suggestions on best way to layout a group of chart views on a screen. I'm thinking of using QtableWidget. The user would want to resize the rows and columns, and then have the charts fit and adjust to each cell. Is this a good way to do it ? The would want to be able to add and delete charts from the table.
-
Hi
Well it could work but you will have the issue that a row can only be one height so
if one big and the rest small, it will look odd.But if all chart will be ca same size yes it should work ok.
Alternatively, you could tweak this
https://doc.qt.io/qt-5/qtwidgets-layouts-flowlayout-example.html
and put it into a QScrollArea.
Add this to it
https://wiki.qt.io/Widget-moveable-and-resizeable
Tweak it a bit and it should allow for a group of chars in various sizes and
scrollable.