Skip to content

Conversation

@igorkorsukov
Copy link
Contributor

Resolves: #29630

@igorkorsukov igorkorsukov force-pushed the fix/29630_transparent_flashscreen branch 3 times, most recently from 7298411 to f021ae0 Compare October 27, 2025 13:44
@igorkorsukov igorkorsukov changed the title forced close splash screen removed set default alpha buffer on start Oct 27, 2025
@igorkorsukov igorkorsukov force-pushed the fix/29630_transparent_flashscreen branch 4 times, most recently from 6cba575 to 26ff40d Compare October 29, 2025 08:11
@DmitryArefiev DmitryArefiev self-assigned this Oct 29, 2025
@DmitryArefiev
Copy link
Contributor

Tested #29630 on Win10, Mac13.7.8, LinuxUbuntu24.04.3 LTS - FIXED

// ====================================================
//! Needs to be set because we use transparent windows for PopupView.
//! Needs to be called before any QQuickWindows are shown.
QQuickWindow::setDefaultAlphaBuffer(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to leave this as it is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, dialogs and popups set this setting every time before opening, so the "global" setting is just confusing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it's supported at all to change this multiple times at runtime. The documentation says:

In any application which expects to create translucent windows, it's necessary to set this to true before creating the first QQuickWindow. The default value is false.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experience shows that this setting should be set before creating a window (not just any window, but the one it will apply to). This is already how it works for us.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me check..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't seem to turn off transparency... I decided to just return it to how it was.

configure_file(${PROJECT_SOURCE_DIR}/buildscripts/packaging/Windows/PortableApps/appinfo.ini.in ${CMAKE_INSTALL_PREFIX}/../../App/AppInfo/appinfo.ini @ONLY)
endif (WIN_PORTABLE)

if (MUE_RUN_WINDEPLOYQT)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: should be indented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@igorkorsukov igorkorsukov force-pushed the fix/29630_transparent_flashscreen branch 6 times, most recently from 120c24c to 9a648e5 Compare October 29, 2025 13:55
@igorkorsukov igorkorsukov changed the title removed set default alpha buffer on start added main window transparency on start Oct 29, 2025
@DmitryArefiev DmitryArefiev merged commit 143f206 into musescore:master Oct 29, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Qt6.9.2] Transparent screen flash before main window appears (Windows)

3 participants