[vtkusers] Help with vtkQtTableView
Darshan Pai
darshanpai at gmail.com
Sat Mar 24 04:03:06 EDT 2012
After going through the code , I figured out the problem .
When there is a selection on the vtkQtTableView, updating the vtkTable with
a new column will hide that new column in the QtTableView.
So after updating the QtTableView I need to specifically issue the
SetColumnVisibility of the new column that was added.
This is not needed , if there was no row that was selected.
I wonder if this is how the design is , or is it a bug in the code .
Regards
Darshan
On Fri, Mar 23, 2012 at 2:27 PM, Darshan Pai <darshanpai at gmail.com> wrote:
> I have a vtkTable that I list in the vtkQtTableView
>
> this vtkTable is dynamic in the sense that I add columns to it in run-time
> .
>
> Now everytime the vtkTable is Modified the vtkQtTableView is modified too
> . But this will not work if I have selected a row in the TableView.
>
> If I select a row and then modify the vtkTable , the new fields will not
> be displayed in the view.
>
> Am I missing something here?
>
> Regards
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120324/9fd2e8f4/attachment.htm>
More information about the vtkusers
mailing list