Wasabi
16th September 2010, 16:47
This is a purely theoretical question, no actual code to display (well, one line). If I create a class that inherits from QWidget, does .setAttribute() still work for it? Most importantly, does it work with WA_DeleteOnClose?
//...
(myWidget) potato;
potato.setAttribute(Qt::WA_DeleteOnClose);
//....
Will WA_DeleteOnClose summon the class' destructor or only QWidget's?
//...
(myWidget) potato;
potato.setAttribute(Qt::WA_DeleteOnClose);
//....
Will WA_DeleteOnClose summon the class' destructor or only QWidget's?