QTableWIdget's version of release is wrong, help me
-
@
i write a tablewidget that Inherits QTablewidget,
this->setRowCount(100);this->setColumnCount(100); this->setGeometry(430,75,1490,1005); this->setGridStyle(Qt::SolidLine); this->setColumnWidth(0,50);// this->setColumnWidth(1,50);// this->setColumnWidth(2,50);// this->setColumnWidth(3,30);// this->setColumnWidth(4,250);// this->setColumnWidth(5,250);// this->setColumnWidth(6,250);// this->setColumnWidth(7,250);// this->setColumnWidth(8,220);// this->setColumnWidth(9,250);// this->setColumnWidth(10,250);// this->setColumnWidth(11,250);// this->setColumnWidth(12,250);// this->setColumnWidth(13,250);// this->setColumnWidth(14,250);// QStringList header; header<<"1"<<"2"<<"3"<<"4"<<"5"<<"6"<<"7"<<"8"; this->setHorizontalHeaderLabels(header); this->verticalHeader()->setVisible(false); this->viewport()->installEventFilter(this); this->setItem(1, 1, new QTableWidgetItem("1")); this->setItem(1, 0, new QTableWidgetItem("2")); this->setItem(0, 1, new QTableWidgetItem("3")); this->setItem(0, 0, new QTableWidgetItem("4")); this->setItem(0, 2, new QTableWidgetItem("F")); this->setItem(1, 2, new QTableWidgetItem("F")); this->setItem(2, 0, new QTableWidgetItem("7")); this->setItem(2, 1, new QTableWidgetItem("8")); this->setItem(2, 2, new QTableWidgetItem("M")); this->setItem(3, 0, new QTableWidgetItem("2")); this->setItem(3, 1, new QTableWidgetItem("7")); this->setItem(3, 2, new QTableWidgetItem("M")); this->setItem(4, 0, new QTableWidgetItem("2")); this->setItem(4, 1, new QTableWidgetItem("1")); this->setItem(4, 2, new QTableWidgetItem("F"));
I use QSS in my tablewidget, when i compile debug,
my tablewidget come true; my ScrollBar and HeaderView come true too;
but when i compile release ,my tablewidget's item don't come true, my tablewidget have not column and row ,but the rest come true ,for instance ScrollBar and HeaderView's background and style.
this is display my code when i compile my code object_script.ViperSightClient.Debug ,object_script.ViperSightClient.Release,what's that ?how can i solve MY question?3Q
@