Results 1 to 2 of 2

Thread: Getting a character's coordinates

  1. #1
    Join Date
    Sep 2010
    Location
    Zamość, Poland
    Posts
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    6

    Default Getting a character's coordinates

    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.
    Last edited by Sölve; 18th January 2013 at 21:58.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Getting a character's coordinates

    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. GPS coordinates via SMS
    By radeknati in forum Qt Programming
    Replies: 0
    Last Post: 20th April 2010, 12:56
  2. Replies: 4
    Last Post: 18th March 2010, 10:11
  3. Get Character
    By bismitapadhy in forum Qt Programming
    Replies: 7
    Last Post: 15th July 2009, 11:37
  4. Character by Character (Unicode?) File Reading
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 22nd April 2009, 15:28
  5. How to read QStringList character by character
    By iamjayanth in forum Qt Programming
    Replies: 4
    Last Post: 3rd April 2009, 11:25

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.