Created attachment 168890 [details] Reproducer: mainwindows.cpp and CMakeLists.txt SUMMARY When creating and closing sequentially two QMainWindows the second one core-dumps when clicking on it. This only happens for the KDE version, the pure Qt version works fine. STEPS TO REPRODUCE 1. Unzip the attached mainwindows.zip 2. $ cmake . 3. $ cmake --build . 4. $ ./mainwindows (close first window and click on second) Segmentation fault (core dumped) 5. $ LD_LIBRARY_PATH=/home/wolfgang/qt/6.7.0/gcc_64/lib ./mainwindows (works fine) OBSERVED RESULT When clicking on the second mainwindows menubar the application crashes. When using pure Qt it works as expected. EXPECTED RESULT The second mainwindows menubar "Close" should close the mainwindow and quit the application. Pure Qt and KDE version should behave the same, only the look & feel may differ. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Graphics Platform: Wayland
By "closing" I meant triggering the menubars "Close" menu.
Still the same. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.2 Graphics Platform: Wayland
Still the same. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Graphics Platform: Wayland