PDA

View Full Version : Problem with accented characters



gt.beta2
14th April 2009, 15:10
Hi
Whi is this line ...


modelo->setHeaderData(Produtos_descricao, Qt::Horizontal, tr("Descrição"));

... not showing the accented characters correctly in the view that i created?

Is it a Qt or a Operating System issue?

Thanks

vcp
14th April 2009, 21:04
Hi,

Use trUtf8()

See:
modelo->setHeaderData(Produtos_descricao, Qt::Horizontal, trUtf8("Descrição"));

gt.beta2
14th April 2009, 21:20
Thanks
That solves it.