Bug 489223 - Using a Plasma 6 desktop, a MarbleWidget shortly flashes up as an extra window after being instantiated
Summary: Using a Plasma 6 desktop, a MarbleWidget shortly flashes up as an extra windo...
Status: REPORTED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 24.05.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 10:49 UTC by Tobias Leupold
Modified: 2024-06-26 10:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
CMakeLists.txt (287 bytes, text/plain)
2024-06-26 10:49 UTC, Tobias Leupold
Details
main.cpp (194 bytes, text/x-c++src)
2024-06-26 10:49 UTC, Tobias Leupold
Details
MainWindow.cpp (280 bytes, text/x-c++src)
2024-06-26 10:49 UTC, Tobias Leupold
Details
MainWindow.h (184 bytes, text/x-chdr)
2024-06-26 10:50 UTC, Tobias Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2024-06-26 10:49:24 UTC
Created attachment 171004 [details]
CMakeLists.txt

Hi all :-)

When you run a Plasma 6 desktop and run a program using a MarbleWidget, the widget shortly flashes up as an extra window after being instantiated. I'll attach a minimal example demonstrating this.

I saw this exact behavior with another project, always happening when QWidget::show() was called before the widget was added to a layout. This either did not happen using a Plasma 5 desktop, or at least the flashing was not visible.

For this exact case, I noticed it whilst using KGeoTag. On Plasma 5, everything is normal as usual. When I start KGeoTag on Plasma 6, the MarbleWidget flashes. Just like with the to-be-attached demo.

Maybe, you want to to fix this.

Cheers, Tobias
Comment 1 Tobias Leupold 2024-06-26 10:49:44 UTC
Created attachment 171005 [details]
main.cpp
Comment 2 Tobias Leupold 2024-06-26 10:49:58 UTC
Created attachment 171006 [details]
MainWindow.cpp
Comment 3 Tobias Leupold 2024-06-26 10:50:12 UTC
Created attachment 171007 [details]
MainWindow.h