I think that Qt manages event resources, but I just can't find the confirmation in the docs.
So, should I explicitly delete the QTimerEvent* or let it be?
Thanks.
I think that Qt manages event resources, but I just can't find the confirmation in the docs.
So, should I explicitly delete the QTimerEvent* or let it be?
Thanks.
None of the event handlers need to delete their event.
Though I am not sure why you want to handle a timer event yourself and not use QTimer instead.
Cheers,
_
Seems it would be easier to use it in the more usual way - connect a slot to the QTimer's timeout signal. But I guess it is a "six of one, half-dozen of the other" kind of choice.
My personal style is to use signals and slots over event handlers. Maybe this bias comes from years of struggling with arcane Microsoft Windows and MFC messages and message handlers and the giant switch() statements that usually involved.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks