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. [Solved] display number for device type LinuxFb
Forum Updated to NodeBB v4.3 + New Features

[Solved] display number for device type LinuxFb

Scheduled Pinned Locked Moved Mobile and Embedded
12 Posts 2 Posters 4.4k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    IIRC, device should be something like /dev/ttyX where X is the number of the console where your application should start.

    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
    • S Offline
      S Offline
      sachintm
      wrote on last edited by
      #3

      Hello SGaist,

      The below parameters seems to be working on my device.

      .\myapplication -qws -display “LinuxFb:/dev/fb0”

      But, I could only see a small arrow on the device screen.
      Do I need to set any width and height for the screen ? If yes, How do I set these values ?

      Thanks,
      Sachin

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

        It depends on the screen support you have for your system. You can use the variables described "here":http://qt-project.org/doc/qt-4.8/qt-embedded-envvars.html to set your application environment

        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
        • S Offline
          S Offline
          sachintm
          wrote on last edited by
          #5

          Hello SGaist,

          I tried setting the QWS_SIZE, still the result is same.

          This is the simple test code.
          @#include <QApplication>
          #include <QPushButton>

          int main(int argc, char *argv[])
          {
          QApplication a(argc, argv);
          QPushButton button("Hello Emb World");
          button.show();
          return a.exec();
          }@

          Thanks,
          Sachin

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

            What is you screen resolution ?

            If you have doubts that Qt uses the right values, you could write a little application that shows the size of a widget when maximized

            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
            • S Offline
              S Offline
              sachintm
              wrote on last edited by
              #7

              Hello SGaist,

              screen resolution is 480x272.

              The application is hanging or something when "button.show(); " is called.
              So, the debug log which is printed after the show() call, is not coming.

              There seems to be some problem with window manager, but I could not find it out.

              Thanks,
              Sachin

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

                You could try to start your application remotely through ssh, that should show you the log while the application is running

                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
                • S Offline
                  S Offline
                  sachintm
                  wrote on last edited by
                  #9

                  Hello SGaist,

                  I am able to see the logs, but the actual problem is in the show() function call.

                  The application is hanging when the show() is called on the widget.
                  The same application works fine on the desktop, but when I run the application on the target, it hangs at show() call and in the display, I could see only the image of an arrow.

                  Thanks,
                  Sachin

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

                    Is it hanging or not painting properly ?

                    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
                    • S Offline
                      S Offline
                      sachintm
                      wrote on last edited by
                      #11

                      Hello SGaist,

                      It was the problem with font I guess.

                      When I set the font directory path using QT_QWS_FONTDIR and pass "-font unifont" while launching the application, it is launching and working properly.

                      Thanks for your support.
                      Sachin

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

                        You welcome !

                        Glad you found out :)

                        Since it's all working now, don't forget to update the thread's title to solved so other forum users may know that a solution has been found :)

                        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