QPushButton with "-" looks different
-
I just tried your original code on
- Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
- MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1
In both these cases, the buttons look equally normal. Are you using the latest XCode?
-
I just tried your original code on
- Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
- MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1
In both these cases, the buttons look equally normal. Are you using the latest XCode?
@ModelTech said in QPushButton with "-" looks different:
I just tried your original code on
- Ubuntu 16.04 with Qt 5.7.0 (Qt Creator 4.0.3 built with gcc 4.9.1, 64bit) using gcc 5.4.0
- MacOS 10.11.6 with Qt 5.7.0 (Qt Creator 4.0.3 built with Clang 7.0, 64bit) using XCode 7.3.1
In both these cases, the buttons look equally normal. Are you using the latest XCode?
XCode 7.3.1 and Qt Creator 4.1.0 built with Clang 7.0, 64bit
-
Strange indeed.
Workaround:
QPushButton *del = new QPushButton(QString(QChar(static_cast<ushort>(2012))), this); -
I already reported this bug, please see https://bugreports.qt.io/browse/QTBUG-53679
-
I already reported this bug, please see https://bugreports.qt.io/browse/QTBUG-53679
-
Qt 5.9 RC, macOS (10.12.5), Qt Creator (4.3.0) and XCode (8.3.2) and the problem still occurs.
-
To add to m.sue :
if you consider it important to be fixed upvote in the bug tracker This will attract more attention to it.I've voted for it myself.
Eddy