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
m_setapp = new SetApp(this);
m_setapp = new SetApp(this);
To copy to clipboard, switch view to plain text mode
I get this error while compiling
mum.cpp: In member function 'void mum::settings()':
mum.cpp:75: error: no matching function for call to 'SetApp::SetApp(mum* const)'
myqtapp.
h:34: note
: candidates are
: SetApp
::SetApp(QWidget*)myqtapp.h:29: note: SetApp::SetApp(const SetApp&)
mum.cpp: In member function 'void mum::settings()':
mum.cpp:75: error: no matching function for call to 'SetApp::SetApp(mum* const)'
myqtapp.h:34: note: candidates are: SetApp::SetApp(QWidget*)
myqtapp.h:29: note: SetApp::SetApp(const SetApp&)
To copy to clipboard, switch view to plain text mode
But this works ok
m_setapp = new SetApp(NULL);
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
Bookmarks