Qtableview to Qtablewidget
-
Hi,
I have Qtableview (Qstandrditemmodel) :
1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ? -
Hi,
I have Qtableview (Qstandrditemmodel) :
1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ? -
Hi,
I have Qtableview (Qstandrditemmodel) :
1->Iis it possible to cast qtableview to qtablewidget as in a inbuilt lib function i have to pass qtablewidget?
2->I have to create new qtablewidget to pass in the function parameter , so for that how i should store my qtableview data which have 10 rows 8 columns, then this data I add to qtablewidget ?@n-2204 said in Qtableview to Qtablewidget:
I have Qtableview (Qstandrditemmodel) :
Then why do you want a
QTableWidget
at all?QTableWidget
inheritsQTableView
, and supplies its own internal model to use. There is nothing you can do with aQTableWidget
which you cannot do with aQTableView
and your own model.