It is possible to replace the editor of the data with a specialized widget provided a GlvWidgetData
specialization is defined (see section GlvWidgetData specializations )
In this example is presented how to use the specialized widget associated to the data by adding a GlvWidget
as second template argument of GlvTableView
.
GlvTableView<Matrix<Tvalue>, GlvWidget>* table_view2D = new GlvTableView< Matrix<Tvalue>, GlvWidget>(matrix2D);
table_view2D->show();
To use persistent editors, simply add the template argument true
.
GlvTableView<Matrix<Tvalue>, GlvWidget, true>* table_view2D_persistent = new GlvTableView< Matrix<Tvalue>, GlvWidget, true>(matrix2D);
table_view2D_persistent->show();
More details in sample004_3.cpp.