Bug 411140

Summary: Example MarbleWidget will not exit when closed
Product: [Applications] marble Reporter: Jeremy Harding <the.great.zarf>
Component: generalAssignee: marble-bugs
Status: REPORTED ---    
Severity: grave CC: demm, the.great.zarf
Priority: NOR    
Version: 2.5 (KDE Applications 18.04)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: source and make file to reproduce issue

Description Jeremy Harding 2019-08-21 15:37:54 UTC
Created attachment 122280 [details]
source and make file to reproduce issue

SUMMARY


STEPS TO REPRODUCE
1. compile and link the supplied example code (exactly as supplied but updated for Qt5)
2. Run under leap 42.3 - works, and program exits nicely
3. Run under Leap 15.1 - works, but doesn't exit correctly

OBSERVED RESULT
Under Leap 15.1 program continues to run after closing window.

EXPECTED RESULT
Expect behaviour to be the same between the two releases - the program should exit when the window is closed.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jeremy Harding 2019-11-15 11:24:23 UTC
I have an application based on the sample application which now doesn't work with the latest version of QT. Please can someone have a look at this, as it can't be so hard to fix? Should I report this under QT?
Comment 2 Jeremy Harding 2020-06-09 09:15:00 UTC
Can be fixed by adding 

            m_mapWidget->setAttribute(Qt::WA_DeleteOnClose);

to the example.