Ok. I found a workaround solution, maybe not the most elegant but It works.

Qt Code:
  1. QObject *obj = parent->findChild<QTabWidget*>("pagesTabWidget");
  2. QTabWidget *tab = qobject_cast<QTabWidget*>(obj);
  3. tab->setCurrentIndex(1);
To copy to clipboard, switch view to plain text mode