PDA

View Full Version : Getting a character's coordinates



Sölve
18th January 2013, 21:42
Hello.

I'm trying to obtain coordinates of a single character stored in Text object, but I don't know how to do it.
I've thought about splitting one Text object to many objects, but I find it problematic and inefficient.

Can you help me?
Thanks in advance.

Best regards,
Sölve.

wysota
18th January 2013, 22:46
It's not that easy in a general case. You could use QFontMetrics on C++ side (e.g.though a function exported to QtQuick) for that however I have no idea if it's possible to provide all needed information to QFontMetrics.