Yuhang Zhao
2023-12-06 8521bbf2f335984542f2071825d7383548862b7a
src/widgets/widgetwindowagent.cpp
@@ -32,8 +32,10 @@
            return false;
        }
        std::ignore = w->winId(); // Make sure the window handle is created
        if (!d->setup(w->windowHandle(), new WidgetItemDelegate())) {
        w->setAttribute(Qt::WA_DontCreateNativeAncestors);
        w->setAttribute(Qt::WA_NativeWindow);
        if (!d->setup(w, new WidgetItemDelegate())) {
            return false;
        }
        d->hostWidget = w;