Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFontDatabase Qt 5.8 vs Qt 5.3.2

QFontDatabase Qt 5.8 vs Qt 5.3.2

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 1.5k Views
  • 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.
  • V Offline
    V Offline
    vdw_hmng
    wrote on last edited by
    #1

    Hello,

    My apologies if this question has been asked before. We are upgrading our Qt application running on Lubuntu 32-bit from Qt 5.3.2 to Qt 5.8. One of the issues we have ran into is font handling. The Qt 5.3.2 version of our application detects the system fonts fine (the directories under /usr/share/fonts). However when starting the Qt 5.8 version we get this error:

    “QFontDatabase: Cannot find font directory”

    The directory that QFontDatabase looks for is “/usr/local/lib/lib/fonts”, which of course does not exists.

    The Qt 5.3.2 we use this the one that was provided by qt.io. The Qt 5.8 version we compiled from source on a virtual machine.

    We can get one of the directories to work by setting QT_QPA_FONTDIR, but our fonts are scattered over many directories.

    What is the proper way of solving this problem?

    Did we forget to configure some setting when compiling Qt 5.8 or has there been a change in behaviour and do we need to move all our fonts to one location?

    Greetings,

    hmng

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since your compiling Qt yourself and that 5.9 is almost out, can you check with that version ?

      By the way, can you also show the options you pass to the configure script ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      V 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Since your compiling Qt yourself and that 5.9 is almost out, can you check with that version ?

        By the way, can you also show the options you pass to the configure script ?

        V Offline
        V Offline
        vdw_hmng
        wrote on last edited by
        #3

        @SGaist
        Thanks for the reply.
        We will try Qt5.9 once it's released. For the configure script we did not pass any extra options except nomake tests and nomake examples.
        We have also tried to build the using the qxcb option to no avail.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vdw_hmng
          wrote on last edited by
          #4

          I tried to recompile Qt 5.8.0 again, this time following instructions written:

          https://wiki.qt.io/Building_Qt_5_from_Git
          http://doc.qt.io/qt-5/linux-requirements.html

          to the letter and the problem is now fixed :).

          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