[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to put a & in a button text
[Thread Prev] | [Thread Next]
- Subject: Re: How to put a & in a button text
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Wed, 26 Mar 2025 13:21:13 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 26/03/2025 à 06:13, BB a écrit :
Quicky? I want the button text to say "Save & Quit".In the IDE when I put that string in the control properties I get an underscore.Trying to escape it doesn't work. QT5/6 tia bruce
'&' is a mark to indicate the button shortcut. Just double it to get the character: "Save && Quit".
This strange thing comes from Windows as far as I know, and has been copied by Qt, so I follow the move. Now I think it was a stupid idea.
Regards, -- Benoît Minisini.
Re: How to put a & in a button text - quick question | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
How to put a & in a button text | BB <adamnt42@xxxxxxxxx> |