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. QT for Raspberry Pi: Display Issue
QtWS25 Last Chance

QT for Raspberry Pi: Display Issue

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 3 Posters 2.4k 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.
  • D Offline
    D Offline
    Deep Kapadia
    wrote on last edited by
    #1

    Hello,
    I'm developing an GUI application with QT on Raspberry Pi.
    Below I have attached screenshot of Original GUI , through QT creator RUN command:
    0_1516599940623_Screenshot_2.JPG

    You can see Tags like Count, P.V. and S.V. and Time Stamp showing correctly.

    But when I try to run this QT executable on Power ON, It shows like below:
    0_1516600061214_screenshot_1.JPG

    In which Second is not showing Time Stamp and Tags also. Push Button pattern is also changed.

    I have write this in /etc/profile, where QT_GPIO is QT executable.
    "/home/pi/QT_GPIO/QT_GPIO &"

    Why I'm getting this difference in GUI???

    QT creator: 3.2.1
    QT 5.3.2 - GCC 4.9.2
    Raspberry Pi have Raspbian Jessie version 8

    jsulmJ 1 Reply Last reply
    1
    • D Deep Kapadia

      Hello,
      I'm developing an GUI application with QT on Raspberry Pi.
      Below I have attached screenshot of Original GUI , through QT creator RUN command:
      0_1516599940623_Screenshot_2.JPG

      You can see Tags like Count, P.V. and S.V. and Time Stamp showing correctly.

      But when I try to run this QT executable on Power ON, It shows like below:
      0_1516600061214_screenshot_1.JPG

      In which Second is not showing Time Stamp and Tags also. Push Button pattern is also changed.

      I have write this in /etc/profile, where QT_GPIO is QT executable.
      "/home/pi/QT_GPIO/QT_GPIO &"

      Why I'm getting this difference in GUI???

      QT creator: 3.2.1
      QT 5.3.2 - GCC 4.9.2
      Raspberry Pi have Raspbian Jessie version 8

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Deep-Kapadia How do you position all the graphical elements? Do you use layouts or do you place them manually?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Deep-Kapadia How do you position all the graphical elements? Do you use layouts or do you place them manually?

        D Offline
        D Offline
        Deep Kapadia
        wrote on last edited by
        #3

        @jsulm I have placed them manually.

        jsulmJ 1 Reply Last reply
        0
        • D Deep Kapadia

          @jsulm I have placed them manually.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Deep-Kapadia That's the problem: if the theme changes you will have such issues. It is usually better to use layouts (http://doc.qt.io/qt-5/layout.html) - they take care to position all the elements in a correct way.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          5
          • jsulmJ jsulm

            @Deep-Kapadia That's the problem: if the theme changes you will have such issues. It is usually better to use layouts (http://doc.qt.io/qt-5/layout.html) - they take care to position all the elements in a correct way.

            D Offline
            D Offline
            Deep Kapadia
            wrote on last edited by
            #5

            @jsulm Thanks!!
            Tags misplace issue solved by Layout.
            But Push Button Pattern change issue still remains. You can see the difference in both screenshot Push Button background color an type is different.

            jsulmJ 1 Reply Last reply
            0
            • D Deep Kapadia

              @jsulm Thanks!!
              Tags misplace issue solved by Layout.
              But Push Button Pattern change issue still remains. You can see the difference in both screenshot Push Button background color an type is different.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Deep-Kapadia Apparently you have two different themes depending on how you start your app. My guess is that you have two different Qt version on your device: one from the Raspbian and one which you installed by yourself?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              1
              • jsulmJ jsulm

                @Deep-Kapadia Apparently you have two different themes depending on how you start your app. My guess is that you have two different Qt version on your device: one from the Raspbian and one which you installed by yourself?

                D Offline
                D Offline
                Deep Kapadia
                wrote on last edited by
                #7

                @jsulm Okay... So is there any way to select a particular version to run QT executable?

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

                  Hi,

                  To ensure it's that, you can use LD_LIBRARY_PATH to ensure that the folder containing your custom version of Qt is searched first for dependencies resolution.

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

                  D 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Hi,

                    To ensure it's that, you can use LD_LIBRARY_PATH to ensure that the folder containing your custom version of Qt is searched first for dependencies resolution.

                    D Offline
                    D Offline
                    Deep Kapadia
                    wrote on last edited by
                    #9

                    @SGaist Thanks for your reply.
                    Can you please suggest an example how to use LD_LIBRARY_PATH?

                    jsulmJ 1 Reply Last reply
                    0
                    • D Deep Kapadia

                      @SGaist Thanks for your reply.
                      Can you please suggest an example how to use LD_LIBRARY_PATH?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Deep-Kapadia

                      LD_LIBRARY_PATH=/path/to/your/qt/libs:$LD_LIBRARY_PATH
                      

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      1

                      • Login

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