[Qt-interest] Possible to use html code in QDoubleSpinBox suffix?

Jonathan Kew jonathan_kew at sil.org
Fri May 15 23:13:35 CEST 2009


On 15 May 2009, at 21:53, Matthias Pospiech wrote:

> I would like to write a unit to a QDoubleSpinBox, such as square
> millimeter. In a label I can do
> "mm<sup>2</sup>", but the same does not work as a suffix in a spinbox.
>
> Is there any possible workaround to get such output?

How about using "mm²" as the suffix?

JK





More information about the Qt-interest-old mailing list