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. No text displayed in GUI
Qt 6.11 is out! See what's new in the release blog

No text displayed in GUI

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 2.1k Views 2 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.
  • A Offline
    A Offline
    Anu Jayan
    wrote on last edited by
    #1

    Hello

    1. I cross compiled the source code path which contains the .pro file.

    [linux-devkit]:~/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/example-applications/Peristaltic/src> /home/zumi/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/qmake Peristaltic.pro
    [linux-devkit]:~/ti-processor-sdk-linux-am62xx-evm-08.03.00.19/example-applications/Peristaltic/src> make

    1. I was successfully able to create the executable file Peristaltic which can be run on the AM62x EVM board.

    2. After the target board is booted, I have passed the following commands in the console.
      root@am62xx-evm:~# export QT_QPA_PLATFORM=eglfs
      root@am62xx-evm:~# export QT_QPA_EGLFS_NO_LIBINPUT=1

    3. When I run the executable file, I get the below log. And the GUI is not displaying any text other than blocks.
      root@am62xx-evm:/Peristaltic/src# ./Peristaltic
      chmod: /dev/ttyUSB0: No such file or directory
      Cannot open device /dev/video0, exiting.
      QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
      QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
      QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
      QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked()

    4. I have attached the image of the GUI, which is getting displayed. Kindly help me to resolve the issue.
      Peristaltic_gui.jpg

    Thanks in advance
    Regards
    Anu Jayan

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

      Hi,

      Might be a sill question but: do you have fonts deployed on your device ?

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Might be a sill question but: do you have fonts deployed on your device ?

        A Offline
        A Offline
        Anu Jayan
        wrote on last edited by
        #3

        Yes @SGaist

        SGaistS 1 Reply Last reply
        0
        • A Anu Jayan

          Yes @SGaist

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check the presence of the one you use with QFontDatabase ?

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you check the presence of the one you use with QFontDatabase ?

            A Offline
            A Offline
            Anu Jayan
            wrote on last edited by
            #5

            @SGaist said in No text displayed in GUI:

            Did you check the presence of the one you use with QFontDatabase ?

            I am not sure.

            1. But I already have the "libfont" libraries added in "usr/lib/".

            root@am62xx-evm:/usr/lib# ls font
            libfontconfig.so libfontconfig.so.1 libfontconfig.so.1.12.0

            1. Also followed the below forum link, to add the "dejavu-fonts-ttf-2.37" fonts in the same "usr/lib/".
              https://forum.qt.io/topic/99825/qfontdatabase-cannot-find-font-directory-usr-local-qt5pi-lib-fonts

            root@am62xx-evm:~# cd /usr/lib/fonts/
            dejavu-fonts-ttf-2.37/ ttf/

            root@am62xx-evm:/usr/lib/fonts/dejavu-fonts-ttf-2.37# ls
            AUTHORS BUGS LICENSE NEWS README.md fontconfig langcover.txt status.txt ttf unicover.txt

            1. Still the fonts are not getting displayed in GUI & I am getting the following log.
              root@am62xx-evm:/Peristaltic/src# ./Peristaltic
              [ 50.599094] PVR_K: 865: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
              [ 50.626721] PVR_K: 865: Shader binary image 'rgx.sh.33.15.11.3' loaded
              chmod: /dev/ttyUSB0: No such file or directory
              Cannot open device /dev/video0, exiting.
              QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
              QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
              QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
              QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked()

            Regards
            Anu Jayan

            SGaistS 1 Reply Last reply
            0
            • A Anu Jayan

              @SGaist said in No text displayed in GUI:

              Did you check the presence of the one you use with QFontDatabase ?

              I am not sure.

              1. But I already have the "libfont" libraries added in "usr/lib/".

              root@am62xx-evm:/usr/lib# ls font
              libfontconfig.so libfontconfig.so.1 libfontconfig.so.1.12.0

              1. Also followed the below forum link, to add the "dejavu-fonts-ttf-2.37" fonts in the same "usr/lib/".
                https://forum.qt.io/topic/99825/qfontdatabase-cannot-find-font-directory-usr-local-qt5pi-lib-fonts

              root@am62xx-evm:~# cd /usr/lib/fonts/
              dejavu-fonts-ttf-2.37/ ttf/

              root@am62xx-evm:/usr/lib/fonts/dejavu-fonts-ttf-2.37# ls
              AUTHORS BUGS LICENSE NEWS README.md fontconfig langcover.txt status.txt ttf unicover.txt

              1. Still the fonts are not getting displayed in GUI & I am getting the following log.
                root@am62xx-evm:/Peristaltic/src# ./Peristaltic
                [ 50.599094] PVR_K: 865: RGX Firmware image 'rgx.fw.33.15.11.3' loaded
                [ 50.626721] PVR_K: 865: Shader binary image 'rgx.sh.33.15.11.3' loaded
                chmod: /dev/ttyUSB0: No such file or directory
                Cannot open device /dev/video0, exiting.
                QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work.
                QSqlDatabasePrivate::addDatabase: duplicate connection name 'qt_sql_default_connection', old connection removed.
                QMetaObject::connectSlotsByName: No matching signal for on_pushButton_clicked()
                QMetaObject::connectSlotsByName: No matching signal for on_path_pushButton_clicked()

              Regards
              Anu Jayan

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.

              If no text is shown, print the fonts available using QFontDatabase.

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

              A 1 Reply Last reply
              1
              • SGaistS SGaist

                Then let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.

                If no text is shown, print the fonts available using QFontDatabase.

                A Offline
                A Offline
                Anu Jayan
                wrote on last edited by
                #7

                @SGaist said in No text displayed in GUI:

                Then let's start small. Write a dummy application that just contains a QLabel with some text it in and run it.

                If no text is shown, print the fonts available using QFontDatabase.

                Hi

                1. I have created a .cpp file with the below code & cross compiled for Ti AM62x-sk EVM board.
                #include <QApplication>
                #include <QWidget>
                #include <QLabel>
                #include <QVBoxLayout>
                #include <QFontDatabase>
                #include <QDebug>
                
                int main(int argc, char *argv[])
                {
                    QApplication app(argc, argv);
                
                    QWidget window;
                    QVBoxLayout layout;
                
                    QLabel label("Hello, Qt!");
                    layout.addWidget(&label);
                
                    window.setLayout(&layout);
                
                    // Create an instance of QFontDatabase
                    QFontDatabase fontDatabase;
                
                    // Print available fonts using QFontDatabase
                    QStringList availableFonts = fontDatabase.families();
                    if (availableFonts.isEmpty()) {
                        qDebug() << "No fonts available.";
                    } else {
                        qDebug() << "Available Fonts:";
                        foreach (const QString &font, availableFonts) {
                            qDebug() << font;
                        }
                    }
                
                    window.show();
                
                    return app.exec();
                }
                
                
                1. I run the executable file in target board. But I got the following print and the available fonts are not getting displayed.
                  root@am62xx-evm:/TestApp# ls
                  Makefile yourapp yourapp.cpp yourapp.o yourapp.pro

                  root@am62xx-evm:/TestApp# ./yourapp
                  No fonts available.

                2. Am I missing any libraries dependencies in yocto build (or) while cross compiling with the .pro file. Can you suggest me a solution.

                Regards,
                Anu Jayan

                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