读书人

QTableWidget 剪接

发布时间: 2012-12-24 10:43:14 作者: rapoo

QTableWidget 剪辑

快速创建多个 页表

使用QStackedWidget 添加页, 页上在添加表

for(i = 0;i< (count - SE_page_count*8);i++){for(j = 0;j < 3;j++){comp_one = show_Comp_info[SE_page_count*8+i+1].one;//  所刷新的 内容数据链表comp_two = show_Comp_info[SE_page_count*8+i+1].two;//  所刷新的 内容数据链表comp_three = show_Comp_info[SE_page_count*8+i+1].three;//  所刷新的 内容数据链表if(j==0)SE_Table[order][SE_page_count+1]->setItem(i,j,new QTableWidgetItem(comp_one));if(j==1)SE_Table[order][SE_page_count+1]->setItem(i,j,new QTableWidgetItem(comp_two));if(j==2)SE_Table[order][SE_page_count+1]->setItem(i,j,new QTableWidgetItem(comp_three));}}


读书人网 >移动开发

热点推荐