Yuhang Zhao
2023-12-06 6b60869385137ec71e7bb91db76016f45eb711e1
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;