Results 1 to 2 of 2

Thread: Is there any alternative of (C# :public SizeF MeasureString(string, Font); ) in Qt ??

  1. #1
    Join Date
    Oct 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Is there any alternative of (C# :public SizeF MeasureString(string, Font); ) in Qt ??

    Hello,

    I want to use this function in my project.. but i don't find any alternative of this function in Qt..
    if any one is aware of this thn pls reply me...


    Description of the C# function :

    Graphics.MeasureString Method (String, Font)
    Measures the specified string when drawn with the specified Font object.

    public SizeF MeasureString(
    string text,
    Font font
    );

    Thanks & Regards
    Kunal Nandi
    Last edited by jpn; 19th December 2007 at 06:40. Reason: reformatted to look better

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Is there any alternative of (C# :public SizeF MeasureString(string, Font); ) in Q

    Hi. See QFontMetrics.
    J-P Nurmi

Similar Threads

  1. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.