1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
| ui.table_header->setSpan(0, 0, 2, 1); ui.table_header->setItem(0, 0, new QTableWidgetItem(QString::fromLocal8Bit("1号"))); ui.table_header->item(0, 0)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 1, 2, 1); ui.table_header->setItem(0, 1, new QTableWidgetItem(QString::fromLocal8Bit("2号"))); ui.table_header->item(0, 1)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 2, 2, 2); ui.table_header->setItem(0, 2, new QTableWidgetItem(QString::fromLocal8Bit("3时间"))); ui.table_header->item(0, 2)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 4, 2, 2); ui.table_header->setItem(0, 4, new QTableWidgetItem(QString::fromLocal8Bit("4号"))); ui.table_header->item(0, 4)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 6, 2, 1); ui.table_header->setItem(0, 6, new QTableWidgetItem(QString::fromLocal8Bit("5重量"))); ui.table_header->item(0, 6)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 7, 2, 1); ui.table_header->setItem(0, 7, new QTableWidgetItem(QString::fromLocal8Bit("6宽度"))); ui.table_header->item(0, 7)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 8, 2, 1); ui.table_header->setItem(0, 8, new QTableWidgetItem(QString::fromLocal8Bit("7径"))); ui.table_header->item(0, 8)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 9, 2, 1); ui.table_header->setItem(0, 9, new QTableWidgetItem(QString::fromLocal8Bit("8时间"))); ui.table_header->item(0, 9)->setTextAlignment(Qt::AlignCenter); ui.table_header->setSpan(0, 10, 1, 2); ui.table_header->setItem(0, 10, new QTableWidgetItem(QString::fromLocal8Bit("9距离"))); ui.table_header->item(0, 10)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 10, new QTableWidgetItem(QString::fromLocal8Bit("1卷"))); ui.table_header->item(1, 10)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 11, new QTableWidgetItem(QString::fromLocal8Bit("2卷"))); ui.table_header->item(1, 11)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 12, 1, 2); ui.table_header->setItem(0, 12, new QTableWidgetItem(QString::fromLocal8Bit("3位置"))); ui.table_header->item(0, 12)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 12, new QTableWidgetItem(QString::fromLocal8Bit("4地址"))); ui.table_header->item(1, 12)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 13, new QTableWidgetItem(QString::fromLocal8Bit("5地址"))); ui.table_header->item(1, 13)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 14, 1, 4); ui.table_header->setItem(0, 14, new QTableWidgetItem(QString::fromLocal8Bit("6时间"))); ui.table_header->item(0, 14)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 14, new QTableWidgetItem(QString::fromLocal8Bit("7卷"))); ui.table_header->item(1, 14)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 15, new QTableWidgetItem(QString::fromLocal8Bit("8卷"))); ui.table_header->item(1, 15)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 16, new QTableWidgetItem(QString::fromLocal8Bit("9"))); ui.table_header->item(1, 16)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 17, new QTableWidgetItem(QString::fromLocal8Bit("10"))); ui.table_header->item(1, 17)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 18, 1, 6); ui.table_header->setItem(0, 18, new QTableWidgetItem(QString::fromLocal8Bit("0总"))); ui.table_header->item(0, 18)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 18, new QTableWidgetItem(QString::fromLocal8Bit("2"))); ui.table_header->item(1, 18)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 19, new QTableWidgetItem(QString::fromLocal8Bit("3"))); ui.table_header->item(1, 19)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 20, new QTableWidgetItem(QString::fromLocal8Bit("4"))); ui.table_header->item(1, 20)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 21, new QTableWidgetItem(QString::fromLocal8Bit("5"))); ui.table_header->item(1, 21)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 22, new QTableWidgetItem(QString::fromLocal8Bit("6"))); ui.table_header->item(1, 22)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 23, new QTableWidgetItem(QString::fromLocal8Bit("7"))); ui.table_header->item(1, 23)->setTextAlignment(Qt::AlignCenter);
ui.table_header->setSpan(0, 24, 1, 6); ui.table_header->setItem(0, 24, new QTableWidgetItem(QString::fromLocal8Bit("0总"))); ui.table_header->item(0, 24)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 24, new QTableWidgetItem(QString::fromLocal8Bit("1"))); ui.table_header->item(1, 24)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 25, new QTableWidgetItem(QString::fromLocal8Bit("2"))); ui.table_header->item(1, 25)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 26, new QTableWidgetItem(QString::fromLocal8Bit("3"))); ui.table_header->item(1, 26)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 27, new QTableWidgetItem(QString::fromLocal8Bit("4"))); ui.table_header->item(1, 27)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 28, new QTableWidgetItem(QString::fromLocal8Bit("5"))); ui.table_header->item(1, 28)->setTextAlignment(Qt::AlignCenter); ui.table_header->setItem(1, 29, new QTableWidgetItem(QString::fromLocal8Bit("6"))); ui.table_header->item(1, 29)->setTextAlignment(Qt::AlignCenter);
|