You are destroying the QSplashScreen underpinning your derived QSS splash screen and then trying to use the object. It is hardly surprising this crashes. I don't know of any circumstance under which you would call a destructor directly.Qt Code:
//slots void QSS::fechar() { emit fechou(); }To copy to clipboard, switch view to plain text mode
Take nix's advice including the Qt::WA_DeleteOnClose flag to avoid the resource leak you have at the moment (or put it on the stack). You are also leaking memory by allocating a QTimer on the heap, not setting a parent, and then discarding the pointer to it. No need to create a timer explicitly. Just use the QTimer::singleShot() static function.
Bookmarks