Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTableView::clearSpans()
QtWS25 Last Chance

QTableView::clearSpans()

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.1k Views
  • 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.
  • S Offline
    S Offline
    shorawitz
    wrote on 19 Oct 2011, 18:38 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shorawitz
      wrote on 19 Oct 2011, 20:21 last edited by
      #2

      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.

      1 Reply Last reply
      0

      2/2

      19 Oct 2011, 20:21

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved