I use desktop environment (Ubuntu / Qt 5.4.2) and at least in this environment the currentChanged is only emitted when the page is actually changed. So if I create a new tab either by using insertTab or addTab the tab does not change and because of that the signal is not emitted.
Usually after tab is created it is activated by calling setCurrentIndex method for the tab index that was created i.e.
int index
= tab
->addTab
(page,
QString("label"));
tab->setCurrentIndex(index);
int index = tab->addTab(page, QString("label"));
tab->setCurrentIndex(index);
To copy to clipboard, switch view to plain text mode
So I would say that the currentChanged is only emitted in the 3rd case, not in 1st and 2nd cases.
Bookmarks