My application is a plasma widget so 99.99% of the time its just the one widget, there is no reason to have anything else just waiting, hidden, invisible or not shown.

When I use this code
Qt Code:
  1. m_setapp = new SetApp(this);
To copy to clipboard, switch view to plain text mode 
I get this error while compiling
Qt Code:
  1. mum.cpp: In member function 'void mum::settings()':
  2. mum.cpp:75: error: no matching function for call to 'SetApp::SetApp(mum* const)'
  3. myqtapp.h:34: note: candidates are: SetApp::SetApp(QWidget*)
  4. myqtapp.h:29: note: SetApp::SetApp(const SetApp&)
To copy to clipboard, switch view to plain text mode 
But this works ok
Qt Code:
  1. m_setapp = new SetApp(NULL);
To copy to clipboard, switch view to plain text mode 

From what I can tell it's not deleted when it's closed, I have to manually delete it when its closed, then create it again when required