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] Code equivalent of -platform linuxfb
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Code equivalent of -platform linuxfb

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.5k 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.
  • S Offline
    S Offline
    Sidii
    wrote on last edited by
    #1

    Whenever i run my QT application i have to give the platform parameter like this:

    @./myApp -platform linuxfb@

    Is there any way to set this in the code itself?
    So that i don't have to pass the platform flag everytime.

    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sidii
      wrote on last edited by
      #2

      Dear All,

      I have got some idea from the qguiapplication.cpp file.

      Will try some hit and trials.

      Meanwhile if you have any idea please let me know.

      Cheers!!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sidii
        wrote on last edited by
        #3

        Dear All,

        The above cannot be achieved via code.
        We need to set it via environment variable:

        @ export QT_QPA_PLATFORM=linuxfb@

        This works fine!!.

        Marking the thread as [SOLVED]

        1 Reply Last reply
        0
        • M Offline
          M Offline
          marlloz
          wrote on last edited by
          #4

          Thanks.
          Do you know how to pass plugins via variable?
          @-plugin evdevkeyboard -plugin evdevmouse -plugin
          evdevtouch@

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marlloz
            wrote on last edited by
            #5

            Found it.
            "Input on linuxfb":http://qt-project.org/doc/qt-5/embedded-linux.html#configuring-for-a-specific-device

            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