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

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 22 Jan 2018, 05:59 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

    J 1 Reply Last reply 22 Jan 2018, 06:09
    1
    • D Deep Kapadia
      22 Jan 2018, 05:59

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 22 Jan 2018, 06:09 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 22 Jan 2018, 06:20
      0
      • J jsulm
        22 Jan 2018, 06:09

        @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 22 Jan 2018, 06:20 last edited by
        #3

        @jsulm I have placed them manually.

        J 1 Reply Last reply 22 Jan 2018, 06:22
        0
        • D Deep Kapadia
          22 Jan 2018, 06:20

          @jsulm I have placed them manually.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 22 Jan 2018, 06:22 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 22 Jan 2018, 06:54
          5
          • J jsulm
            22 Jan 2018, 06:22

            @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 22 Jan 2018, 06:54 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.

            J 1 Reply Last reply 22 Jan 2018, 07:03
            0
            • D Deep Kapadia
              22 Jan 2018, 06:54

              @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.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 22 Jan 2018, 07:03 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 22 Jan 2018, 12:12
              1
              • J jsulm
                22 Jan 2018, 07:03

                @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 22 Jan 2018, 12:12 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 22 Jan 2018, 22:36 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 26 Jan 2018, 11:21
                  1
                  • S SGaist
                    22 Jan 2018, 22:36

                    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 26 Jan 2018, 11:21 last edited by
                    #9

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

                    J 1 Reply Last reply 26 Jan 2018, 11:49
                    0
                    • D Deep Kapadia
                      26 Jan 2018, 11:21

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

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 26 Jan 2018, 11:49 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

                      9/10

                      26 Jan 2018, 11:21

                      • Login

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