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. QApplication focusChanged
Forum Updated to NodeBB v4.3 + New Features

QApplication focusChanged

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.1k 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.
  • L Offline
    L Offline
    Lorant
    wrote on last edited by
    #1

    Hi all,

    I'm trying to create a Qt5.3.2 GUI program on Rpi3 and I need focusChanged signal from qApp.
    I've got a problem with the touchscreen.
    If I connect a mouse everything is fine and I received focusChanged signals on my slot functions, but if I use touchscreen only this signal not emitted.

    Can somebody help me?
    Thank you in advance.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      First I'll admit that I've never used RPi with a touchscreen, so I can't help much.

      But I suggest trying out newer Qt version (5.9.4 or 5.10.1), maybe that issue was fixed. Also, make sure you have all input handling libraries installed.

      (Z(:^

      L 1 Reply Last reply
      0
      • sierdzioS sierdzio

        First I'll admit that I've never used RPi with a touchscreen, so I can't help much.

        But I suggest trying out newer Qt version (5.9.4 or 5.10.1), maybe that issue was fixed. Also, make sure you have all input handling libraries installed.

        L Offline
        L Offline
        Lorant
        wrote on last edited by
        #3

        @sierdzio Thanks, I'll try a newer qt version!

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Lorant
          wrote on last edited by
          #4

          I installed 5.7.1 (it is the newest version for RPi), but the issue is same.

          Some observations:

          • QTouchDevices found 1 device (Capabilities: Position | NormalizedPosition; Type: TouchScreen)
          • The cursor follow my touch,
          • If I tap into the QLineEdit -> focusChanged signal (from qApp) NOT emitted; cursor NOT blinking in the field
          • If I tap on the QPushButton -> QPushButton clicked signal is emitted

          Do you have any idea?

          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