diff --git a/frame/panel.cpp b/frame/panel.cpp index bd906ad45..afa1b3573 100644 --- a/frame/panel.cpp +++ b/frame/panel.cpp @@ -22,6 +22,12 @@ DPanel::DPanel(QObject *parent) QObject::connect(this, &DPanel::rootObjectChanged, this, [this]() { D_D(DPanel); + if (auto window = qobject_cast(d->m_rootObject)) { + // set a default title if not set + if (window->title().isEmpty()) { + window->setTitle(pluginId()); + } + } d->ensurePopupWindow(); d->ensureToolTipWindow(); d->ensureMenuWindow();