Drew
13th May 2011, 10:00
Hi,
I'm recently new to QT - and want some advice about displaying lots of numerical data.
I'm attempting to write a front end to my trading application, the requirements are that it would need to display about 100 rows each with 50 columns of data - where about 5 columns in each row might be changing fairly rapidly. I also want some columns displaying as checkboxes instead of data, and maybe some columns as drop downs. Some columns would be read-only, while others would be read/write - and after changing a value I need to detect which row/column has changed.
What I am currently thinking is start with either a QTableView, QTreeView or a QTreeWidget. QTableView and QTreeView seems to be better at displaying row data (compared to QTreeWidget) - but I'd have to add my own code to do checkboxes/drop downs etc
Performance is something I also need to consider - I might potentially want to expand it to display 1000's of rows.
I've been playing around with all three of the above - QTreeWidget can do checkboxes, but manipulating the data is a bit trickier.
Or is there a better way(s)?
Any advice/options would be welcome.
I'm recently new to QT - and want some advice about displaying lots of numerical data.
I'm attempting to write a front end to my trading application, the requirements are that it would need to display about 100 rows each with 50 columns of data - where about 5 columns in each row might be changing fairly rapidly. I also want some columns displaying as checkboxes instead of data, and maybe some columns as drop downs. Some columns would be read-only, while others would be read/write - and after changing a value I need to detect which row/column has changed.
What I am currently thinking is start with either a QTableView, QTreeView or a QTreeWidget. QTableView and QTreeView seems to be better at displaying row data (compared to QTreeWidget) - but I'd have to add my own code to do checkboxes/drop downs etc
Performance is something I also need to consider - I might potentially want to expand it to display 1000's of rows.
I've been playing around with all three of the above - QTreeWidget can do checkboxes, but manipulating the data is a bit trickier.
Or is there a better way(s)?
Any advice/options would be welcome.