[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put a & in a button text


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.


Follow-Ups:
Re: How to put a & in a button text - quick questionT Lee Davidson <t.lee.davidson@xxxxxxxxx>
References:
How to put a & in a button textBB <adamnt42@xxxxxxxxx>