Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    QTableWIdget's version of release is wrong, help me

    General and Desktop
    1
    2
    852
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      foxgod last edited by

      @
      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
      @

      1 Reply Last reply Reply Quote 0
      • F
        foxgod last edited by

        i have soluted this qestion.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post