Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Main Window Tab bar - possible bug
GrahamL last edited by
Can someone confirm that the following behavior is expected or whether it is a bug
I create a main window and add some docked widgets
At various points in the code I have something like
QList<QTabBar*> tabBarList = findChildren<QTabBar*>();
QTabBar* tabBar = NULL;
tabBar = tabBarList.at(0);
qDebug() << "Count = " << tabBar->count();
As you can see this code relies on there being only one tab bar.
My application should restore the the UI to the same state as when it was last run so I do this
Now, when I debug the application there are 2 tab bars for the main window.
Is this a bug?