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. Check if a query has finished
QtWS25 Last Chance

Check if a query has finished

Scheduled Pinned Locked Moved Solved General and Desktop
queryfinished
2 Posts 1 Posters 1.0k 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.
  • C Offline
    C Offline
    cxam
    wrote on 16 Apr 2016, 18:43 last edited by
    #1

    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

    C 1 Reply Last reply 16 Apr 2016, 18:45
    0
    • C cxam
      16 Apr 2016, 18:43

      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.

      C Offline
      C Offline
      cxam
      wrote on 16 Apr 2016, 18:45 last edited by
      #2

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

      Stay Hungry, Stay Foolish

      1 Reply Last reply
      0

      2/2

      16 Apr 2016, 18:45

      • 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