Bug 411140 - Example MarbleWidget will not exit when closed
Summary: Example MarbleWidget will not exit when closed
Status: REPORTED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 2.5 (KDE Applications 18.04)
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-21 15:37 UTC by Jeremy Harding
Modified: 2020-06-09 09:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
source and make file to reproduce issue (12.74 KB, application/x-compressed-tar)
2019-08-21 15:37 UTC, Jeremy Harding
Details

Note You need to log in before you can comment on or make changes to this bug.
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.