Hi call paint() instead of update(), that should fix it.
________________________________ From: interest-bounces+pritam_ghanghas=infosys....@qt-project.org [interest-bounces+pritam_ghanghas=infosys....@qt-project.org] on behalf of 程梁 [devb...@outlook.com] Sent: Thursday, March 14, 2013 12:32 PM To: Arunprasad Rajkumar Cc: Qt Interest Subject: Re: [Interest] QTimer pauses when window minimum Yeah, I mean when you clicked minimum button on right top of the window. I'm developing a monitor system with real time chart so the chart should be updated no matter the window is visible or just in minimized state. If most windowing system optimize this, I think I should draw the chart in memory in order to update the whole chart when the window is visible. This might be one of solutions. Cheng Liang Nanjing, China http://www.devbean.net ________________________________ Date: Thu, 14 Mar 2013 10:06:34 +0530 Subject: Re: [Interest] QTimer pauses when window minimum From: ararunpra...@gmail.com To: devb...@outlook.com CC: interest@qt-project.org >But when the window minimum QTimer stops and paintEvent() could not be called. Whether your window is in minimized state?. When window is in minimized state it is not visible in screen. Then why you need a paint? Basically most of the windowing system optimizes by not sending paintevent when window is in minimized state. On 14 March 2013 08:36, 程梁 <devb...@outlook.com<mailto:devb...@outlook.com>> wrote: Hi, there! In my application I need to update UI every 2s. I use QTimer to implement this feature. But when the window minimum QTimer stops and paintEvent() could not be called. How could I solve this problem? Or could you tell me something else to get this feature? Thank you! Cheng Liang Nanjing, China http://www.devbean.net _______________________________________________ Interest mailing list Interest@qt-project.org<mailto:Interest@qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest -- Arunprasad Rajkumar http://in.linkedin.com/in/ararunprasad **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest