I am trying to add QProgressBar in my code but having some troubles. I added progress bar via Designer and in the code, I pass the pointer to QprogressBar object to a separate thread to have it update QProgressBar as it's processing data, however, I get this message: ../../src/xcb_lock.c:77: _XGetXCBBuffer: Assertion `((int) ((xcb_req) - (dpy->request)) >= 0)' failed. I am running Qt-4.5.0 on Ubuntu 8.10(2.6.27-11). I also tried Qt-4.3.5 in RHEL5(2.6.18) and I get different error, something cryptic like X error with QPaint error. It's seems to be fine when I updates progress bar from my main app exec loop.
Please help Nimesh