@Burke212 change setup(); CWC = new customWidgetClass(); to CWC = new customWidgetClass(); setup(); hopefully you did initialize CWC as nullptr, otherwise that would have crashed in release mode 10/10 times.