Progress Bar doesn't update incrementally
Hi, I am writing a utility in a script language called KVS which is for the KVIrc IRC client. It's a little obscure, I know, but it is based on Qt. I have written code that opens a text file, reads the file line by line, and each line is sent as a query to a sqlite database using the SQL library that KVS has built in. afaik, it's just a standard sqlite3 library that Qt would have. I wanted to have a progress bar widget to show the progress of this loop. If I comment out the calls to the SQL object to send the queries, the code executes so fast that I can't see the progress bar working. If I include the SQL calls, the utility "hangs" (Not Responding in Windows) while it executes all the database calls (there's about 1100 lines i;m working with) and the widgets don't update until the loop finishes. So either way I go, I can't see the progress widget updating. Is there some general way I can slow up the processing for testing to see if the widget will redraw correctly? And since the scripting language is using a SQL library to access the database, is this a common problem when using databases? Is there some way I can work around the "Not Responding" hang state while the loop processes my data?