Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML MouseArea signal onPressed is not avaible for signals forwarding
Forum Updated to NodeBB v4.3 + New Features

QML MouseArea signal onPressed is not avaible for signals forwarding

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 4.4k 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.
  • D Offline
    D Offline
    DmT021
    wrote on last edited by
    #1

    Hi everyone, I hava a problem. I need to forward signals from one MouseArea to another one. I have read, that forwarding could be made using method connect of appropriate signal. I have successful made connection for signals onClicked and onReleased:
    clicked.connect(mouseArea.clicked);
    released.connect(mouseArea.released);
    but when i trying to connect onPressed:
    pressed.connect(mouseArea.pressed);
    I have: TypeError: Result of expression 'pressed.connect' [undefined] is not a function.
    How to make forward for this signal?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      astorije
      wrote on last edited by
      #2

      Hello!

      Sorry for bringing this topic out of its grave, but I am facing the same problem...
      The explanation seems straight-forward: there is a "pressed" property on the MouseArea, and I believe it is hiding the "pressed" signal... yep, but how can we get an access to this signal? (in my case, it is not to forward it but to fire it programmatically)

      DmT021, did you find a solution to your problem?

      Thanks everyone!

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DmT021
        wrote on last edited by
        #3

        astorije, no, I didn't. I just redesigned code for using only clicked and released events. So, is this bug still haven't fixed?

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

          Hi,
          Thanks for the answer!
          No, it seems like this is still a relevant bug...
          I posted an entry in the Qt Bugtracker (https://bugreports.qt-project.org/browse/QTBUG-24477 ), so wait & see...

          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