[Qt-interest] Display Euro Symbol in QTableWidget header.

Colin S. Miller no-spam-thank-you at csmiller.demon.co.uk
Wed Nov 18 16:34:18 CET 2009


William sent this directly to me, but he intended it for the group.
Colin S. Miller


Colin S. Miller wrote:
> Wm. G. Urquhart wrote:
>> Hi List,
>>
>> I need to create a two line column header that reads "Carbon\n€/tonne" 
>> however, I can't get the Euro symbol to appear correctly, can anyone 
>> help me please.
>>
> Hi William,
> Are you using a literal € in the string?
> 
> As a guess, I'd say that the file is saved in a different locale
> than the QTableWidget is expecting. Probably one is in UTF-8 and
> the other is in ISO-Latin-1. If you can, could you indicate
> what character(s) the QTableWidget is displaying instead of €?
> 
> As an experiment, does £ work?

Hi Colin,

Your assumptions are correct and thanks to the previous respondents this
now works as expected.

Thanks all.

-- 
William





More information about the Qt-interest-old mailing list