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. How to programming, like a card shuffle.
Qt 6.11 is out! See what's new in the release blog

How to programming, like a card shuffle.

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 2.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
    dFrontia
    wrote on last edited by
    #1

    Hi.

    One Region has same Rectangle.
    The rectangle can flicking in parallel time.

    Do not you know such a sample?

    I tried programming to use Flicable on GridView.
    but Flicable overriding other Flicable. So,Could not control well.

    below code is delegate component of GridView.
    Can't reach touch signal to Flicable...

    @
    Flickable{
    id : f1
    anchors.fill: parent

    interactive: false
    
    contentWidth: 1000
    contentHeight: 1000
        contentX: 500
        contentY: 500
        
        Rectangle{
            id:rect
            x: 500
            y: 500
            width: 200
            height: 200
            color: "#ff0000"
    
            Text{
                text:f1.interactive
            }
    
            MouseArea{
                anchors.fill: parent
                onPressed: {
                   f1.interactive = true      <- Important point!!
                }
                onReleased: {
                    f1.interactive = false
                }
            }
        }
    }
    

    @

    Do not you know how to solve?

    regards
    dFrontia.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dFrontia
      wrote on last edited by
      #2

      Resolve It.

      Not use Flickable Element.

      Use a MouseArea custom to Fisica.(Mousearea whith in Inertia )

      "Sample has here...":https://quicking.wordpress.com/2011/09/07/mousearea-whith-phisics/

      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