去掉行标题
ui->tableWidget->verticalHeader()->setVisible(false);
去掉列标题
ui->tableWidget->horizontalHeader()->setVisible(false);
去掉行标题
ui->tableWidget->verticalHeader()->setVisible(false);
去掉列标题
ui->tableWidget->horizontalHeader()->setVisible(false);