Re: [Interest] QTimer stops triggering
André: I don't know what timer API is used by Qt. If it's Posix timers underneath, can you try a simple app with Posix timers and see if they also misbehave. That way, we will know whether it's a platform problem or qt problem. Seems to me that no matter what technology Qt uses under the hood, it is always a Qt problem. Qt does not advertise any limitations on this front, so it should not suffer any. If the platform does not support the functionality directly, it is up to Qt to work around that IMHO. Absolutely true. But still, it would be valuable to know whether one needs to design a work-around to a platform problem or just fix a Qt bug. Atlant From: interest-bounces+aschmidt=dekaresearch@qt-project.org [mailto:interest-bounces+aschmidt=dekaresearch@qt-project.org] On Behalf Of André Somers Sent: Monday, June 04, 2012 10:26 To: interest@qt-project.org Subject: Re: [Interest] QTimer stops triggering Op 4-6-2012 16:19, Pritam schreef: On Monday 04 June 2012 07:36 PM, Vannoote, Frederik wrote: Hi Syam, The Qtimer object is only created once and lives on for ever. It has an interval of 30 seconds. Most of the times they stop triggering after 1 or 2 days. I dont know what timer API is used by Qt. If its posix timers underneath, Can you try a simple app with posix timers and see if they also misbehave. That way, we will know whether its a platform problem or qt problem. Seems to me that no matter what technology Qt uses under the hood, it is always a Qt problem. Qt does not advertise any limitations on this front, so it should not suffer any. If the platform does not support the functionality directly, it is up to Qt to work around that IMHO. André Kind regards, Frederik Frederik Vannoote Sr. Development Engineer Software Barco nv Pres.Kennedypark 35 B-8500 Kortrijk (Belgium) From: interest-bounces+frederik.vannoote=barco@qt-project.orgmailto:interest-bounces+frederik.vannoote=barco@qt-project.org [mailto:interest-bounces+frederik.vannoote=barco@qt-project.org] On Behalf Of Syam Krishnan Sent: 04jun12 16:04 To: interest@qt-project.orgmailto:interest@qt-project.org Subject: Re: [Interest] QTimer stops triggering On 06/04/2012 12:34 PM, Vannoote, Frederik wrote: Hey all, I'm having a weird thing about Qtimer which I can't explain until now. We are using a dedicated application to kick the processor watchdog. This application is based on a QTimer. Basically, it only has to call an ioctl once every 30 seconds. This is the only thing the application does. We see that after a random time, the QTimer stops triggering. We have proven that it does not get stuck somewhere, it just does not get scheduled any more. I've replaced the code with a while loop instead of the QT event loop. That seems to be running fine. Do you mean to say that you have set the QTimer to have a time-out of 30 seconds? And what is the order of time after which the timer seems to stop working - minutes, hours? Also, (a wild shot) are you by any chance creating the timer objects afresh everytime? Syam DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. -- Regards, Pritam 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
Re: [Interest] QTimer stops triggering
On Monday 04 June 2012 07:55 PM, André Somers wrote: Op 4-6-2012 16:19, Pritam schreef: On Monday 04 June 2012 07:36 PM, Vannoote, Frederik wrote: Hi Syam, The Qtimer object is only created once and lives on for ever. It has an interval of 30 seconds. Most of the times they stop triggering after 1 or 2 days. I dont know what timer API is used by Qt. If its posix timers underneath, Can you try a simple app with posix timers and see if they also misbehave. That way, we will know whether its a platform problem or qt problem. Seems to me that no matter what technology Qt uses under the hood, it is always a Qt problem. Qt does not advertise any limitations on this front, so it should not suffer any. If the platform does not support the functionality directly, it is up to Qt to work around that IMHO. I was just trying to rule out the possibility of a platform bugs. May be your platform vendor has not done a good job at creating/porting platform software on the hardware that you use. André Kind regards, Frederik Frederik Vannoote Sr. Development Engineer Software Barco nv Pres.Kennedypark 35 B-8500 Kortrijk (Belgium) *From:*interest-bounces+frederik.vannoote=barco@qt-project.org [mailto:interest-bounces+frederik.vannoote=barco@qt-project.org] *On Behalf Of *Syam Krishnan *Sent:* 04jun12 16:04 *To:* interest@qt-project.org *Subject:* Re: [Interest] QTimer stops triggering On 06/04/2012 12:34 PM, Vannoote, Frederik wrote: Hey all, I’m having a weird thing about Qtimer which I can’t explain until now. We are using a dedicated application to kick the processor watchdog. This application is based on a QTimer. Basically, it only has to call an ioctl once every 30 seconds. This is the only thing the application does. We see that after a random time, the QTimer stops triggering. We have proven that it does not get stuck somewhere, it just does not get scheduled any more. I’ve replaced the code with a while loop instead of the QT event loop. That seems to be running fine. Do you mean to say that you have set the QTimer to have a time-out of 30 seconds? And what is the order of time after which the timer seems to stop working - minutes, hours? Also, (a wild shot) are you by any chance creating the timer objects afresh everytime? Syam DISCLAIMER: Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you. -- Regards, Pritam ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest -- Regards, Pritam 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
Re: [Interest] QTimer stops triggering
On terça-feira, 5 de junho de 2012 16.40.03, Pritam wrote: I was just trying to rule out the possibility of a platform bugs. May be your platform vendor has not done a good job at creating/porting platform software on the hardware that you use. On Windows, Qt uses system timers, which deliver events to the Qt event window. There are two types of timers in use: the ones created with SetTimer for anything above 20 ms or timeSetEvent (multimedia timers) for anything below. On Mac with GUI, Qt uses a CoreFoundation timer (created CFRunLoopTimerCreate). On Unix systems and on Mac without GUI, Qt does not use system timers. The timers are kept in a sorted list and the shortest timeout is the timeout for the the select(2) or poll(2) call. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center Intel Sweden AB - Registration Number: 556189-6027 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden signature.asc Description: This is a digitally signed message part. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Changing QSpinEdit color
Hi all, I have a question in context with QSpinEdit: On a Mac this call successfully changes the color of the spinEdit: spin-setAutoFillBackground(true); spin-setPalette( *greenFgPalette ); On Win, however, this call seems to be ignored - the spinEdit remains white. Can anyone tell me how to make it work under Win ? Thanks in advance, best Alex -- http://www.carot.de http://www.triologue.de Email : alexan...@carot.de Tel.: +49 (0)177 5719797 NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] QTimer doesn't fire while resizing windows on Windows
Hi, Seeing Thiago's response to a recent QTimer question, prompted me to check whether this Windows problem had been circumvented. He says that on Windows QTimer ... deliver events to the Qt event window. Back in 4.3 and WinXP when I first looked at this, I found that the events are not delivered while the user is dragging the edges to resize the window. Is that still the case? Even creating the QTimer to another thread, didn't help. In my case, it was significant. The timer was being used to play MIDI messages, and the sound would stop! In the end, I had to use my own loop and msleep in the player thread. Hope this saves someone else from making the same mistake. Tony. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest