Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79841

[MouseArea] Button can't un-highlight

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.6
    • None
    • aarch64le
    • QNX

    Description

      Hi all,

      I have a problem need for your help. In my project, I use this code to highlight button when touching

      function toggleImage(isPressed) { source = (isPressed ? focusSource : normalSource); }
      onContainsMouseChanged: parent.toggleImage(containsMouse)
      

       

      and the other button I using this code:

      MouseArea
      {
          onPressed: { parent.source = UIBridge.getImageSourceByName("active"); }
          onReleased: { parent.source = UIBridge.getImageSourceByName("inactive"); }
      }
      

      But there is a problem with my touchscreen. buttons are highlighted when I press but they aren't un-highlighted when I release my finger. Could you please support me to check this issue?

      Thanks

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            thuat.nguyen Thuat Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes