Use QTabView::currentWidget()
to get your active tab. Cast that to TabView
, and access the array by using your getArray()
function. Like this:
TabView *active_tab = qobject_cast<TabView*>(ui->tabWidget->currentWidget());
if(active_tab)
tabsArray[index] = active_tab->getArray();