1、窗体无边框?
tableView->setFrameShape(QFrame::NoFrame);
2、表格内容无边框?
tableView->setShowGrid(false);
3、设置标题头风格? 背景色?无边框?高度?
tableView->horizontalHeader()->setStyleSheet("QHeaderView::section { background-color:rgb(205,205,205); padding-left: 4px; border: 0px solid 0; height:28; }");
4、表格交替变色?
tableView->setStyleSheet("QTableView{background-color: rgb(255, 255, 255);alternate-background-color: rgb(233, 248, 254)}");
tableView->setAlternatingRowColors(true);