Results 1 to 2 of 2

Thread: CFont to QFont

  1. #1
    Join Date
    Nov 2008
    Location
    Bangalore, India
    Posts
    21
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows Symbian S60

    Post CFont to QFont

    How to convert symbian Cfont to QFont ?

  2. #2
    Join Date
    Nov 2008
    Location
    Bangalore, India
    Posts
    21
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    Windows Symbian S60

    Default Re: CFont to QFont

    ok. I found a way of doing it

    TFontSpec spec = font->FontSpecInTwips(); //font is a pointer to CFont
    QString family((const QChar *)spec.iTypeface.iName.Ptr(), spec.iTypeface.iName.Length());
    QFont ffont(family);

Similar Threads

  1. QFont and DPI
    By ArlexBee-871RBO in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2010, 14:31
  2. QFont, inclination
    By Piskvorkar in forum Qt Programming
    Replies: 0
    Last Post: 28th September 2009, 09:36
  3. QFont problem.
    By anafor2004 in forum Newbie
    Replies: 2
    Last Post: 18th June 2008, 17:25
  4. QFont
    By ghorwin in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2007, 21:44
  5. Default value for QFont
    By Kapil in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2006, 06:40

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.