summaryrefslogtreecommitdiffstats
path: root/src/plugins/windows/qwebview2webview.cpp
diff options
context:
space:
mode:
authorKaloyan Chehlarski <kaloyan.chehlarski@qt.io>2025-10-27 14:25:06 +0100
committerMichal Klocek <michal.klocek@qt.io>2025-11-07 09:43:40 +0000
commit644de3a41f6a37663598270ac9e2f43210c0c44d (patch)
tree60ec12628ff6104444f5fac83e04d2d515d85b62 /src/plugins/windows/qwebview2webview.cpp
parentd31b136cd8cc8c347ad6b1229331e25f9ac206ac (diff)
Windows: Do not set native window as visible by default
In cases where a WebView is created, but its window is not embedded anywhere, having setVisible(true) would cause the window to get shown in the center of the screen with way to close or hide it. Pick-to: 6.10 Change-Id: If82ee8bef07d0204e700d2a2e790625e57bfadde Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/plugins/windows/qwebview2webview.cpp')
-rw-r--r--src/plugins/windows/qwebview2webview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/windows/qwebview2webview.cpp b/src/plugins/windows/qwebview2webview.cpp
index c0e7fe6..0741261 100644
--- a/src/plugins/windows/qwebview2webview.cpp
+++ b/src/plugins/windows/qwebview2webview.cpp
@@ -117,7 +117,6 @@ QWebView2WebViewPrivate::QWebView2WebViewPrivate(QObject *parent)
m_window->setFlag(Qt::Tool);
m_window->setFlag(Qt::FramelessWindowHint); // No border
m_window->setFlag(Qt::WindowDoesNotAcceptFocus); // No focus
- m_window->setVisible(true);
// create platform window
HWND hWnd = (HWND)m_window->winId();