Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1022 Bytes

ModelView_widget_editor.md

File metadata and controls

25 lines (16 loc) · 1022 Bytes

Model View

Widget editor

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();

sample004_3

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();

sample004_3_persistent

More details in sample004_3.cpp.