Hallo, i found a solution: no idea if it's stylish to call hide() and show() for currentWidget!!

Qt Code:
  1. void MyClass::MyFunction(void)
  2. {
  3. m_pTabWidget->currentWidget()->hide();
  4.  
  5. m_pHLayout = SmartPointer<QHBoxLayout>(new QHBoxLayout());
  6.  
  7. // ................. the same code as before .............................
  8.  
  9. m_pTabWidget->currentWidget()->setLayout(m_pHLayout); //HERE - I expect that the resize event for both m_pWidget1 and pWidget2 is called.....
  10.  
  11. m_pTabWidget->currentWidget()->show(); // ...in fact it's called HERE !!!!!!!!
  12. }
To copy to clipboard, switch view to plain text mode