table->verticalHeader()->hide();//竖的标题隐藏
table->horizontalHeader()->hide();//顶上的标题隐藏
tablewidget 加顶上的横标题
QStringList headers;
headers<<"name"<<"price"<<"total";
table->setHorizontalHeaderLabels(headers);
table->verticalHeader()->hide();//竖的标题隐藏
table->horizontalHeader()->hide();//顶上的标题隐藏
tablewidget 加顶上的横标题
QStringList headers;
headers<<"name"<<"price"<<"total";
table->setHorizontalHeaderLabels(headers);