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 ScrollView, mouse click

Qml ScrollView, mouse click

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 469 Views 2 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Qml ScrollView, mouse click
    Hi, I have a scroll view full of a Text component items.
    The object that embeds the ScrollView has a timeout. after the timeout I remove the ScrollView.
    Is there a way to detect the mouse click events to manage the timeout?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    DiracsbracketD 1 Reply Last reply
    0
    • mrdebugM mrdebug

      Qml ScrollView, mouse click
      Hi, I have a scroll view full of a Text component items.
      The object that embeds the ScrollView has a timeout. after the timeout I remove the ScrollView.
      Is there a way to detect the mouse click events to manage the timeout?

      DiracsbracketD Offline
      DiracsbracketD Offline
      Diracsbracket
      wrote on last edited by
      #2

      @mrdebug
      Can't you use a MouseArea that covers your view and on the click handler do something like:

      onClicked: {
            timer.restart()
            mouse.accepted = false
      }
      
      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