Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Keyboard grab on Linux EGLFX/FB and other glitches

    Mobile and Embedded
    3
    7
    1962
    Loading More Posts
    • 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.
    • C
      Ctirad.F last edited by

      Hello all,

      I'm developing an embedded application using the qtwebkit/CPP running on the custom minimalistic Linux x64 system.
      I can sucessfully start qtwebkit on the framebuffer/EGLFS, but I allways have to click by the mouse somewhere in the screen in order to make keyboard input of the qtwebkit application functional. The keyboard is handled by the javascript and there will be no mouse at all in the final application.

      I tried to pass the QT_QPA_EVDEV_KEYBOARD_PARAMETERS="grab=1" and also many of the qtwebkit related functions with either "grab" or "focus" in their names from the CPP side without luck.

      The second question is that there is a conflict between an QT applicaton running on the framebuffer and the underlying console. Even when I make the kernel silent and redirect all the ouptut to the /dev/tty1, there is still a flashing cursor present on the screen.

      I also like to try the KMS/DRM, but no succes so far. Not sure how usable is in the QT 5.3.1, anyway.

      Ctirad

      1 Reply Last reply Reply Quote 0
      • A
        agocs last edited by

        As for the blinking cursor, try passing vt.global_cursor_default=0 to the kernel.

        1 Reply Last reply Reply Quote 0
        • C
          Ctirad.F last edited by

          Thanks, this kernel parameter helped.

          However, I still desperately need to know, how to grab the keyboard input in my fullscreen application without an initial mouse click. The target hardware has no mouse at all, just a keyboard.

          1 Reply Last reply Reply Quote 0
          • R
            Rahul Das last edited by

            Hi,
            I fixed this issue temporarily, using Qt Test lib. By emulating touch event (in Qt 4.8.2)


              Rahul Das
            

            1 Reply Last reply Reply Quote 0
            • A
              agocs last edited by

              Is it a widgets or Quick based web view? You are most likely missing a setFocus() call or focus: true in case of QML.

              [quote author="Ctirad.F" date="1411322758"]Thanks, this kernel parameter helped.

              However, I still desperately need to know, how to grab the keyboard input in my fullscreen application without an initial mouse click. The target hardware has no mouse at all, just a keyboard. [/quote]

              1 Reply Last reply Reply Quote 0
              • C
                Ctirad.F last edited by

                The problem was in the html5applicationviewer template. No focus() or grab() methods helped at all. I removed the template and directly used the QWebView. Problem solved.

                1 Reply Last reply Reply Quote 0
                • C
                  Ctirad.F last edited by

                  The problem was in the html5applicationviewer template. No focus() or grab() methods helped at all. I removed the template and directly used the QWebView. Problem solved.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post