githubuser0xFFFF/Qt-Advanced-Docking-System

Under AutoHideDockWidget, the setWindowTitle method cannot be synchronized to the pop-up screen

jenifly opened this issue · 8 comments

Under AutoHideDockWidget, the setWindowTitle method cannot be synchronized to the pop-up screen

Sorry, could you please elaborate. I do not understand what you mean. I cannot find the file or class AutoHideDockWidget.

Sorry, could you please elaborate. I do not understand what you mean. I cannot find the file or class AutoHideDockWidget.

like this...
image

You cannot set the window title explicetely via setWindowTitle because the windows title of the dock widget is its title you give in constructor.

You cannot set the window title explicetely via setWindowTitle because the windows title of the dock widget is its title you give in constructor.

That way, when I switch languages, the title of the widget cannot be changed

You cannot set the window title explicetely via setWindowTitle because the windows title of the dock widget is its title you give in constructor.

That way, when I switch languages, the title of the widget cannot be changed

image

You need to set the custom window title earlier before you add the dock widget to the DockManager:

    TableDockWidget = new CDockWidget("Table 2");
    TableDockWidget->setWindowTitle("Custom Window Title");

works here

You need to set the custom window title earlier before you add the dock widget to the DockManager:

    TableDockWidget = new CDockWidget("Table 2");
    TableDockWidget->setWindowTitle("Custom Window Title");

works here

yes, but it's calling

DockManager->addAutoHideDockWidget(SideBarLocation::SideBarLeft, TableDockWidget);

Then window title of the pop-up form cannot be changed.
How can I change this window title?

I don't know what you mean - this is how it looks like after the two lines above:

2024-05-21_15h45_13