Results 1 to 10 of 10

Thread: QFontDatabase:Cannot find font directory

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2014
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFontDatabase:Cannot find font directory

    Hi

    For me the solution was as described above:

    1.- copy a valid fonts directory (in this case a Qt compiled for x86, or the host machine) into the target rootfs system. i.e.
    cp -r /home/Documents/qt-x86/lib/fonts /external_sdcard_mounted_point/home/user/lib/fonts-qt
    2.- set the variable QT_QWS_FONTDIR to the new created directory. i.e.
    export QT_QWS_FONTDIR=/home/user/lib/fonts-qt/

    Then I run in the target machine the example for analogclock and it worked perfectly

  2. #2
    Join Date
    Oct 2013
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QFontDatabase:Cannot find font directory

    Hey!

    Did you guys find the solution?

    --Kumar

Similar Threads

  1. QFont - supported fonts
    By prak in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2008, 21:25
  2. QFont problem.
    By anafor2004 in forum Newbie
    Replies: 2
    Last Post: 18th June 2008, 17:25
  3. Simple Problem with QFont (point size)
    By mtrpoland in forum Newbie
    Replies: 4
    Last Post: 31st December 2007, 16:49
  4. charset in QFont?
    By rajeshs in forum Qt Programming
    Replies: 5
    Last Post: 1st October 2007, 11:40
  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
  •  
Qt is a trademark of The Qt Company.