Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Solved Check if a query has finished

    General and Desktop
    query finished
    1
    2
    763
    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.
    • cxam
      cxam last edited by

      Hi I want to remove a row from a QTableWidget if a query has finished so looking in the documentation I saw "query.finish" so I made:

      if (query.finish()) {
              row--;
              ui->tableWidget->setRowCount(row);
          }
      

      But it doesn't work because "query.finish" is void and not bool.

      Stay Hungry, Stay Foolish

      cxam 1 Reply Last reply Reply Quote 0
      • cxam
        cxam @cxam last edited by

        @cxam Hahaha Solved, easily with "query.isActive". Sorry for the stupid question

        Stay Hungry, Stay Foolish

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