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. Qt5 on Raspberry PI: application in fullscreen mode
QtWS25 Last Chance

Qt5 on Raspberry PI: application in fullscreen mode

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

    Hi all!
    After a while, I have cross-compiled successfully Qt5 to Raspberry PI.

    Now I am facing a problem which causes the application to run in fullscreen mode. Also it does not handle any input, neither keyboard nor mouse inputs.

    How can I execute my application in windowed mode, and be able to handle the inputs?

    I am using eglfs as platform, just if it matters.

    Any help is appreciated,
    Best regards,
    LoPiTaL

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

      Hi,

      Since you are using eglfs it's normal that your application is fullscreen. You don't have any window manager.

      As for the input part, you have to tell your application where to look. More about it "here":http://doc.qt.io/qt-5/embedded-linux.html#input-on-eglfs

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

        Hi!
        Thank you for your reply! It helped me very much!

        Finally, I have been able to understand how the plugin system works, the differences between EGLFS and XCB and I have been able to compile and use both of this platforms.

        With XCB, everything is now working fine.
        With EGLFS, I have one last problem: the movement of the mouse is reaaalllyyy slow, being unusable inside the application (in the desktop the mouse movement is good). Mouse clicks and keyboard works fine, it is just the movement of the mouse.
        I have configured Qt with support for libudev, as stated in the link you have posted.

        Is there any other option I have missed?

        Thank you in advance,
        LoPiTaL

        1 Reply Last reply
        0
        • A Offline
          A Offline
          agocs
          wrote on last edited by
          #4

          Keep in mind that with xcb you won't have any OpenGL support on the Pi. So it's fine for running QWidget apps but it won't run any Qt Quick 2 stuff.

          If you are not interested in Qt Quick or OpenGL, then go for xcb. It will function better than eglfs when using the traditional widgets.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            LoPiTaL
            wrote on last edited by
            #5

            Yes, I know that XCB has no support for OpenGL. Is because of this that I want to have the EGLFS platform fully working, now that I have my hands dirty compiling, installing and the like; so at any point in the future I can change between them with no more pain.

            A 1 Reply Last reply
            0
            • X Offline
              X Offline
              xenotrax
              wrote on last edited by
              #6

              Hi,
              Is your Raspberry now perfectly work with EGLFS ?
              Did you find a solution for the pointer problem ?
              I try to make my QtQuick2 application run on the Raspberry. I use the Raspberry2 to compile.
              At the moment I have fullscreen and I have to read why there is no Window manager .. as well some problems with the Window elements positions (Buttons etc..)

              1 Reply Last reply
              0
              • L LoPiTaL

                Yes, I know that XCB has no support for OpenGL. Is because of this that I want to have the EGLFS platform fully working, now that I have my hands dirty compiling, installing and the like; so at any point in the future I can change between them with no more pain.

                A Offline
                A Offline
                AlexeiBazlaev
                wrote on last edited by
                #7

                @LoPiTaL
                Hello! Have you fixed mouse lags in QT applications with eglfs? I have the same issue and no ideas how to fix it

                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