//CTabPageDescInfomation is a subclass of QWidget.
m_pTabPage[Tab_Page_Basic] = new CTabPageDescInfomation(Tab_Page_Basic,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Basic],g_mapPages[Tab_Page_Basic]);
m_pTabPage[Tab_Page_Botany] = new CTabPageDescInfomation(Tab_Page_Botany,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Botany],g_mapPages[Tab_Page_Botany]);
m_pTabPage[Tab_Page_Agronomy] = new CTabPageDescInfomation(Tab_Page_Agronomy,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Agronomy],g_mapPages[Tab_Page_Agronomy]);
//......
connect(m_pTabWidget,SIGNAL(currentChanged(int)),this,SLOT(slot_tabSelChanged(int)));
pH->addWidget(m_pTabWidget);
//CTabPageDescInfomation is a subclass of QWidget.
m_pTabWidget = new QTabWidget(this);
m_pTabPage[Tab_Page_Basic] = new CTabPageDescInfomation(Tab_Page_Basic,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Basic],g_mapPages[Tab_Page_Basic]);
m_pTabPage[Tab_Page_Botany] = new CTabPageDescInfomation(Tab_Page_Botany,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Botany],g_mapPages[Tab_Page_Botany]);
m_pTabPage[Tab_Page_Agronomy] = new CTabPageDescInfomation(Tab_Page_Agronomy,m_nDlgType,childFrm(),this);
m_pTabWidget->addTab(m_pTabPage[Tab_Page_Agronomy],g_mapPages[Tab_Page_Agronomy]);
//......
connect(m_pTabWidget,SIGNAL(currentChanged(int)),this,SLOT(slot_tabSelChanged(int)));
pH->addWidget(m_pTabWidget);
To copy to clipboard, switch view to plain text mode
When run the program , it shows as the picture below, Does somebody encounter a similar problem?
Bookmarks