[Interest] ampersand in QDockWidget on windows and macOs

Alexander Semke alexander.semke at web.de
Fri Dec 24 11:02:18 CET 2021


Hi all,

in our application we're setting the window title for dock widgets via
QWidget::setWindowTitle() like in
https://invent.kde.org/education/labplot/-/blob/master/src/kdefrontend/
MainWin.cpp#L1224

On windows and on macOs additional ampersand is shown in the title text
(https://imgur.com/JlAwx7I) and I don't see any way to remove it. The problem
doesn't exist on linux.


I found https://bugreports.qt.io/browse/QTBUG-54485 which is closed already.
But the problem is still present in Qt 5.15.4 for us. The workaround mentioned
in QTBUG-54485 with the stylesheets doesn't help.

Does somebody know how to solve/workaround this problem?


Regards,
Alexander




More information about the Interest mailing list