We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,605 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

QT C++ Progressbar Laggy

Hey Everybody,

Allright my setting is like this:

I created a derived MVC program using C++ and QT on Visual Studio 2008, that sends multiple instructions to our ERP system through an external program...

On each command posted this way the user application needs to wait for a return string and react accordingly, this all happens in SQL with a continuos... query that takes place every 500 miliseconds with a timeout after x tries

Because of the large number of automation and lack of "communication" with the user I have included a "QProgressBar" in a dialog which gets updated as the functionality flows

The problem:

During these database queries while the application is waiting for a response my Progressbar animation is extremely laggy... the end aim is to convert to IPC and I believe this will solve it... but users have a tendency to want everything perfect (as you would all know)

Is there a way to either disable the animation in Win7 or a way to run the animation "outside the application scope" so it wont be influenced by the application database queries

Low priority but I cant really find references to this on google that are helpful

any specific coding required I will gladly provide but as you can imagine I wont be able to display the entire program...

2
Contributors
3
Replies
1 Day
Discussion Span
8 Months Ago
Last Updated
4
Views
Question
Answered
Eagletalon
Junior Poster
135 posts since Mar 2011
Reputation Points: 44
Solved Threads: 16
Skill Endorsements: 0

I believe I have traced the problem to a "Sleep(500)" call in the waiting between status check to the database... is there any alternative or way around this I can implement?

Eagletalon
Junior Poster
135 posts since Mar 2011
Reputation Points: 44
Solved Threads: 16
Skill Endorsements: 0

Please put some example code. May be you can use timer to control the progressbar animation independently.

mdminhazulhaque
Newbie Poster
1 post since Aug 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

Managed it with timers... thnx in any case :)

Eagletalon
Junior Poster
135 posts since Mar 2011
Reputation Points: 44
Solved Threads: 16
Skill Endorsements: 0
Question Answered as of 8 Months Ago by mdminhazulhaque

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0627 seconds using 2.66MB