Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Is it possible to change directory for QFontDatabase ?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to change directory for QFontDatabase ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 868 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • embdevE Offline
    embdevE Offline
    embdev
    wrote on last edited by
    #1

    Hi when I run a static Qt5 app on my target embedded device, is it possible to change the directory for QFontDatabase to point to my NFS instead? As i'm assessing the fonts via NFS to my host for development work. Where may I set this path?

    1 Reply Last reply
    0
    • miclandM Offline
      miclandM Offline
      micland
      wrote on last edited by
      #2

      I'm not sure if there is an official way - but you can try to cheat with a symlink or you can iterate over the files in your NFS mount and load them by calling the static method QFontDataBase::addApplicationFont(...) with the absolute path of each font file you want to load.

      embdevE 1 Reply Last reply
      1
      • miclandM micland

        I'm not sure if there is an official way - but you can try to cheat with a symlink or you can iterate over the files in your NFS mount and load them by calling the static method QFontDataBase::addApplicationFont(...) with the absolute path of each font file you want to load.

        embdevE Offline
        embdevE Offline
        embdev
        wrote on last edited by
        #3

        @micland I see. I guess I probably reconfigure my sources again and add -extprefix and -prefix paths to it to be neater.

        Thanks!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved