Hi,

I have a function in which my application changes skins, and where it is necessary to use qDeleteAll() and remove all objects, then make new ones. The object that triggers this function is a button, say Button1. When the button is pressed I get the following error (Qt Creator):

Qt Code:
  1. app-stderr:QObject: Do not delete object, 'Button1', during its event handler!
To copy to clipboard, switch view to plain text mode 

I haven't experienced any Seg faults or other consequences but would like to know if this is in any way dangerous and if it is, how I can avoid it.

Thanks in advance,
codeslicer