QTableView::clearSpans()



  • For some reason, this function stopped working in my current code. I can perform other actions on the QTableView, but not this one. Basically, I have a button calling this function:

    @void MainWindow::on_resetButton_clicked()
    {
    ui->tableView->clearSpans();
    //ui->comboBox->setCurrentIndex(0);
    //ui->name->clear();
    }@

    I've tried commenting any/every thing I've added since this first worked (it did work at one point.) I can't figure out how to find out what's wrong. I'm pretty new to QT & QTCreator. It would be a pain to rip out the tableview as I've got multiple groupings setup to keep things lined up the way I want on the window.



  • Ok. I don't get it. It's working now??? Except now I'm calling "reset()" and it's putting in a root entry. To be clearer, I'm adding a model of a QFileSystemModel type.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.