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. Create widget scroll animation

Create widget scroll animation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 483 Views
  • 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.
  • C Offline
    C Offline
    cza.
    wrote on last edited by
    #1

    It disappears on one side and appears immediately on another side. Like this:
    Untitled.png

    Currently I use 2 labels to achieve this. But I'm curious is there any tidy ways to implement this without a clone widget.

    JoeCFDJ 1 Reply Last reply
    0
    • C cza.

      It disappears on one side and appears immediately on another side. Like this:
      Untitled.png

      Currently I use 2 labels to achieve this. But I'm curious is there any tidy ways to implement this without a clone widget.

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @cza You may try to use one label and override paintEvent to paint two parts.

      C 1 Reply Last reply
      0
      • JoeCFDJ JoeCFD

        @cza You may try to use one label and override paintEvent to paint two parts.

        C Offline
        C Offline
        cza.
        wrote on last edited by cza.
        #3

        @JoeCFD Is it possible to override any parent methods instead of child? Because I want to make this effect apply to all child widgets.

        Also it seems QQuickItem has no paintEvent()...

        1 Reply Last reply
        0
        • GrecKoG Offline
          GrecKoG Offline
          GrecKo
          Qt Champions 2018
          wrote on last edited by
          #4

          You could do this with ShaderEffectSource

          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