Its me again

Problem with moiseMoveEvent on the Tab widgets. It does not work on mac.

When I add two tab widgets and on default switch to second one programatically

Qt Code:
  1. tabWidget()->setCurrentWidget(secondpage);
To copy to clipboard, switch view to plain text mode 

switching back two first one using GUI mouseMoveEvent does not work.

When I add two tabs without switching "setCurrentWidget(secondpage)" , then clicking on GUI tabs back and forward mouse event always work.

The below is what I do. I have setMoveMouse set everywhere.

Qt Code:
  1. void MainWindow::currentTabChanged(int index)
  2. {
  3.  
  4. QWidget *widget = _tabWidget->widget(index);
  5.  
  6. if (widget) {
  7. _tabWidget->setCurrentWidget(widget);
  8. widget->setFocus(Qt::ActiveWindowFocusReason);
  9. widget->activateWindow();
  10. widget->raise();
  11. widget->setVisible(true);
  12. Application::setActiveWindow(widget);
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

What I am missing here ?

Thanks for help