diff --git a/src/dquickwindow.cpp b/src/dquickwindow.cpp index de0a3bc0..47f92e38 100644 --- a/src/dquickwindow.cpp +++ b/src/dquickwindow.cpp @@ -396,8 +396,14 @@ void DQuickWindowAttached::setWindow(QQuickWindow *window) bool DQuickWindowAttached::isEnabled() const { D_DC(DQuickWindowAttached); +#ifdef Q_OS_WIN + // On Windows, DPlatformHandle doesn't support isEnabledDXcb, + // but we still need to report enabled when handle exists + return d->handle != nullptr; +#else return d->handle && (DPlatformHandle::isEnabledDXcb(window()) || DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsWaylandPlatform)); +#endif } /*!