This is a forward of the bug reported in the Debian bug tracker https://bugs.debian.org/848180 : konsole calls setCaption or setPlainCaption depending on the value of the user setting "Show application name on the titlebar", this used to do the right thing in qt4, but in qt5 both calls do the same and qt's qpa plugin is responsible for appending the application name in the title. Please consider either avoiding the append of the application name in the title when calling setPlainCaption, or at least update the documentation to make it clear that setCaption and setPlainCaption will do the same. Happy hacking,
The Konsole option "Show application name on the titlebar" still does apparently nothing, as of Konsole 18.04.2.
This bug is still present in KXmlGui 5.49.0 and can be observed in Konsole 18.08.0 through the "Show application name on the titlebar" setting, which still has no effect.
Could use QWindow::setTitle() instead. It is possible to get the window of a widget via QWidget::windowHandle().
Unfortunately, this won't work, because it is indeed the QPA that adds the application name. Qt developers would need to add a method to set the 'plain' window title.
*** Bug 407146 has been marked as a duplicate of this bug. ***
Qt QPA always adds the application name to the window title. You could ask Qt developers to add a way to avoid this via https://bugreports.qt.io/
Great, thanks! See https://bugreports.qt.io/browse/QTBUG-75535 Should I reopen this bug if/when the upstream bug is resolved, or should I open a new one?
I am subscribed to the Qt ticket, no need to file a new one.