Results 1 to 4 of 4

Thread: mousearea outside flickable not working

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014
    Posts
    104
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default mousearea outside flickable not working

    Hi,

    I know this is somewhat easy however I can't figure out what prevents the mousearea from working when the parent height of the flickable is less than its (flickable) content height, other than that mousearea is okay.

    Qt Code:
    1. Item
    2. {
    3. MouseArea
    4. {
    5. id: mouseArea
    6. anchors.fill: parent
    7. onClicked: { console.log("yes") }
    8. }
    9.  
    10. Flickable
    11. {
    12. id: main
    13. contentHeight: 160
    14. anchors.fill: parent
    15. boundsBehavior: Flickable.StopAtBounds
    16. interactive: parent.height > contentHeight ? false : true
    17.  
    18. Rectangle
    19. {
    20. id: body
    21. anchors {
    22. left: parent.left
    23. right: parent.right
    24. }
    25. }
    26. }
    27. }
    To copy to clipboard, switch view to plain text mode 

    Thanks.
    Last edited by joko; 15th December 2014 at 16:34.

Similar Threads

  1. Flickable and mouse signal propagation
    By clousque in forum Qt Quick
    Replies: 7
    Last Post: 25th August 2014, 12:16
  2. Replies: 1
    Last Post: 18th July 2013, 13:31
  3. Replies: 0
    Last Post: 7th July 2013, 02:43
  4. MouseArea
    By Viper666 in forum Qt Quick
    Replies: 6
    Last Post: 10th January 2013, 13:30
  5. Replies: 0
    Last Post: 16th September 2012, 10:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.