Actually i have created three tabs in my app..now on selecting each tab i want to open a new form on that particular tab..the code i have written for creating tabs...

Qt Code:
  1. tabWidget = new QTabWidget;
  2. QWidget* pCalender = new QWidget;
  3. QWidget* pHistory = new QWidget;
  4. QWidget* pStatistics= new QWidget;
  5. tabWidget->addTab(pCalender,tr("Calender"));
  6. tabWidget->addTab(pHistory,tr("History"));
  7. tabWidget->addTab(pStatistics,tr("Statistics"));
To copy to clipboard, switch view to plain text mode 

now i have three forms.

1.calendar.cpp

2.history.cpp

3.statistic.cpp

now what i want is onclick of each tab i want to open each of the form in particular tab...ie calendar form on tab1...history form on tab2 and statistic form on tab 3..so anyone please suggest me how that can be done...

with regards
Rahul