Moin
I just measured a molecule. It is “19.2” long. 19.2 what? I guess nanometer?
Carsten
Moin
I just measured a molecule. It is “19.2” long. 19.2 what? I guess nanometer?
Carsten
Am Mittwoch, 27. Juni 2007 15:12:34 schrieb Carsten Niehaus:
Moin
I just measured a molecule. It is “19.2” long. 19.2 what? I guess
nanometer?
I just did the math myself (quite difficult with many angles… I just guessed
because I know the C-C distance…) After a bit guesswork I get ~1.7nm = 17
Angstrom. So I bet Avo calculates in Angstrom.
Carsten
On Wednesday 27 June 2007 14:12:34 Carsten Niehaus wrote:
Moin
I just measured a molecule. It is “19.2” long. 19.2 what? I guess
nanometer?Carsten
I am pretty sure it is Angstroms - you are right that the units should be
displayed.
On Jun 27, 2007, at 9:37 AM, Marcus D. Hanwell wrote:
I am pretty sure it is Angstroms - you are right that the units
should be
displayed.
Units for distance are typically in Angstrom. But this raises a good
point for Carsten (or anyone else). What’s the best way to display
accented or special characters using Qt and QString.
For example, in HTML, that would be Å – or the “alpha” for the
unit cell angle is α Do we just need to look up the Unicode/
UTF-8 codes for these, or is there a conversion method? (This goes
for dealing with Designer as well.)
Cheers,
-Geoff
Moin
For example, in HTML, that would be Å – or the “alpha” for the
unit cell angle is α Do we just need to look up the Unicode/
UTF-8 codes for these, or is there a conversion method? (This goes
for dealing with Designer as well.)
QString::fromUtf8(“°C”);
To be extrasure use
QString QString::fromUtf16 ( const ushort * unicode, int size = -1 ) [static]
Carsten
On Jun 27, 2007, at 11:19 AM, Carsten Niehaus wrote:
QString::fromUtf8(“°C”);
…
QString QString::fromUtf16 ( const ushort * unicode, int size =
-1 ) [static]
That’s what I thought for code itself. Can you do this in designer?
Cheers,
-Geoff
2007/6/27, Geoffrey Hutchison geoff@geoffhutchison.net:
On Jun 27, 2007, at 11:19 AM, Carsten Niehaus wrote:
QString::fromUtf8(“°C”);
…
QString QString::fromUtf16 ( const ushort * unicode, int size =
-1 ) [static]That’s what I thought for code itself. Can you do this in designer?
Designer encodes this as UTF8 or UTF16 in the XML-file. You should
simply be able to write ° in Designer (or any other UTF8-char like æ
or ĸ.
Carsten