I see. It works.Another option is to use QApplication:rocessEvents()
I inserted QApplication:rocessEvents() inside the while loop:
and it works.Qt Code:
while(sqlalarm) { mysql_real_query(&mysql, comando.constData(), comando.size()); }To copy to clipboard, switch view to plain text mode
Which is the best approach in your opinion? This with the processEvents or creating an extra thread?
Bookmarks