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 On Embedded Linux Command Line Options
Forum Updated to NodeBB v4.3 + New Features

Qt On Embedded Linux Command Line Options

Scheduled Pinned Locked Moved Mobile and Embedded
embedded linux
10 Posts 3 Posters 3.2k 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.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    To run the Qt application on embedded platform, we need to run it as a server application.

    ./MyApp -qws, will create QApplication object as server application.

    If in case that, I do not want to specify anything in the command line,

    ./MyApp

    Then in the program while creating QApplication, pass QApplication::GuiServer as an parameter.

    Having this information,

    I do not want to pass the other parameters as well.

    Example: -display Transformed:Rot90
    This is an option to rotate my UI in the LCD for 90 degrees.

    But I do not want to specify this in command line.

    Is there a way to set this programmatically in the code?

    Thanks,
    Kumara

    --Kumar

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

      Hi,

      IIRC there's the QWS_DISPLAY environment variable that you could use.

      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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        IIRC there's the QWS_DISPLAY environment variable that you could use.

        Hope it helps

        K Offline
        K Offline
        kumararajas
        wrote on last edited by
        #3

        @SGaist Hi Sam, Thanks for the reply.

        This would work. But I want to do at run time. For example: Say in the mobile, when we rotate the mobile to landscape, the screen tilts. So, that looks like, screen rotation is done at runtime.

        How to achieve that?

        Thanks,

        --Kumar

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

          The thing is: with mobiles (I take you are talking about iOS/Android) the OS tells you about that kind of event and the rotation is done for you (you can lock it though) but at the OS level not in your application.

          What is you exact use case ?

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

          K 1 Reply Last reply
          0
          • SGaistS SGaist

            The thing is: with mobiles (I take you are talking about iOS/Android) the OS tells you about that kind of event and the rotation is done for you (you can lock it though) but at the OS level not in your application.

            What is you exact use case ?

            K Offline
            K Offline
            kumararajas
            wrote on last edited by
            #5

            @SGaist Now I understand.

            My use case, is not a mobile device. My device is an embedded device with touch screen and the device is not immovable.

            So the use case of runtime screen rotation is not really needed for applicable for my application.

            I can set the QWS_DISPLAY to rotate the display to make it viewable.

            My question was really around, Can I set this screen rotation in the application itself?

            As you mentioned iOs/Android Operating System can do the job. My hardware is AM335x.

            --Kumar

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

              Right now, I don't remember if dynamic rotation is available (I don't say it's not)

              Do you have any notification from your board that it has rotated ?

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

              K 1 Reply Last reply
              0
              • SGaistS SGaist

                Right now, I don't remember if dynamic rotation is available (I don't say it's not)

                Do you have any notification from your board that it has rotated ?

                K Offline
                K Offline
                kumararajas
                wrote on last edited by
                #7

                @SGaist Nope. No notification or indication.

                --Kumar

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

                  Then what you can try is get the QScreen of your application, cast it to a QTransformedScreen and then set the transformation.

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

                    Hi
                    Sorry if I posted this in a wrong place.
                    I'm new in QT and QT community and I didn't know how can I create the new post.
                    Please help me in these questions.
                    1-how can I post new subject here ;)
                    2-I'm trying to make a device who has a rich graphic let say something like "Nest thermostat" graphic or similar. Am I in a correct place? If I'm not what is the best tool(s) for this?
                    3-I was make a Qt from source in QT version 4.8.2 for cross compiling with Beagle bone black. later on I found out I didn't install
                    qt-mouse-tslib.
                    In this situation can I add only this library to my existing library or I have to redo my configure with adding that in the end.
                    BTW my host and target machine work on Debian.
                    Host is running Jessie Debian, and target is running Wheezy Debian.
                    Thank you in advance.
                    Iman

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

                      Hi @imanpakii,

                      It's indeed the wrong place, please do not highjack the thread of other people with unrelated questions.

                      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