When I start my program. It is run, but the paintEvent() is not executed. So the gui is not start.
Any help will be appreciated.

Qt: 4.5.1
OS: redhat 6.0

Sometimes it outputs the following log.
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
Major opcode: 55 (X_CreateGC)
Resource id: 0x2023c
X Error: BadLength (poly request too large or internal Xlib length error) 16
Major opcode: 11 (X_UnmapSubwindows)
Resource id: 0x2023c
X Error: BadRequest (invalid request code or no such operation) 1
Extension: 255 (Uknown extension)
Minor opcode: 0 (Unknown request)
Resource id: 0x2023c