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 4.8 vs 5.x
QtWS25 Last Chance

QFontDatabase 4.8 vs 5.x

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.3k 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.
  • Jorg SingendonkJ Offline
    Jorg SingendonkJ Offline
    Jorg Singendonk
    wrote on last edited by
    #1

    I am running a graphics renderer on Linux without X in a command line.

    Under 4.8 the code used QCoreApplication to get Qpainter and QFontDatabase running.
    Under 5.6 I changed it to QGuiAplication because QFontDatabase had changed requirements.

    The MS windows version is now running fine but the Linux versions insists on having a X window.

    How can i compile QT 5.x in a way that QFontDatabase & QPainter are working without X system?

    #include <QCoreApplication>
    QFontDatabase * gfontDatabase;
    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv,false);

    QFontDatabase fontDatabase;
    gfontDatabase=&fontDatabase;

    raven-worxR 1 Reply Last reply
    0
    • Jorg SingendonkJ Jorg Singendonk

      I am running a graphics renderer on Linux without X in a command line.

      Under 4.8 the code used QCoreApplication to get Qpainter and QFontDatabase running.
      Under 5.6 I changed it to QGuiAplication because QFontDatabase had changed requirements.

      The MS windows version is now running fine but the Linux versions insists on having a X window.

      How can i compile QT 5.x in a way that QFontDatabase & QPainter are working without X system?

      #include <QCoreApplication>
      QFontDatabase * gfontDatabase;
      int main(int argc, char *argv[])
      {
      QCoreApplication a(argc, argv,false);

      QFontDatabase fontDatabase;
      gfontDatabase=&fontDatabase;

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Jorg-Singendonk
      which platform plugin are you using?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      Jorg SingendonkJ 1 Reply Last reply
      0
      • Jorg SingendonkJ Offline
        Jorg SingendonkJ Offline
        Jorg Singendonk
        wrote on last edited by
        #3

        @raven-worx said:

        which platform plugin are you using?

        to be honest: i dont'know. It complaints about No X connection during startup.

        this is aviable (which comes with openSuse thumbleweed):

        web79:/usr/lib64/qt5/plugins # dir platforms
        total 724
        -rwxr-xr-x 1 root root 10624 May 17 20:45 libqeglfs.so
        -rwxr-xr-x 1 root root 342496 May 17 20:45 libqlinuxfb.so
        -rwxr-xr-x 1 root root 39840 May 17 20:45 libqminimal.so
        -rwxr-xr-x 1 root root 177216 May 17 20:45 libqminimalegl.so
        -rwxr-xr-x 1 root root 148128 May 17 20:45 libqoffscreen.so
        -rwxr-xr-x 1 root root 10624 May 17 20:45 libqxcb.so

        1 Reply Last reply
        0
        • raven-worxR raven-worx

          @Jorg-Singendonk
          which platform plugin are you using?

          Jorg SingendonkJ Offline
          Jorg SingendonkJ Offline
          Jorg Singendonk
          wrote on last edited by
          #4

          @raven-worx

          finally it works with:

          " -platform linuxfb "

          I never thought of platform issues, but that hint helped.

          thx

          raven-worxR 1 Reply Last reply
          0
          • Jorg SingendonkJ Jorg Singendonk

            @raven-worx

            finally it works with:

            " -platform linuxfb "

            I never thought of platform issues, but that hint helped.

            thx

            raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            @Jorg-Singendonk
            that was i thinking of ;)

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

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

              Hi,

              Since it was based on a QCoreApplication and depending on your needs the offscreen plugin might be more suited.

              Hope it helps

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

              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