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. Flickering effect in ScrollView
QtWS25 Last Chance

Flickering effect in ScrollView

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 1.7k 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.
  • A Offline
    A Offline
    AbuFahima
    wrote on last edited by
    #1

    Hi,

    I have a ListView inside a ScrollView and the contents of the listview are dynamically created. The listview has texboxes, radio buttons and combobox which is decided by the model (QAbstractListModel) 's value at the backend.

    There is no issue while scrolling the view using mouse buttons, but when I scroll the view using finger (Flicking), I could see at the center of the view there is a flickering effect, the view is not scrolled smoothly, instead the textbox lables are having a flickering or waving effect. Anyone has idea how to avoid this behaviour ?

    For your info, the listview has already been set by a property boundsbehaviour: Flickable.StopAtBounds

    R 1 Reply Last reply
    0
    • A AbuFahima

      Hi,

      I have a ListView inside a ScrollView and the contents of the listview are dynamically created. The listview has texboxes, radio buttons and combobox which is decided by the model (QAbstractListModel) 's value at the backend.

      There is no issue while scrolling the view using mouse buttons, but when I scroll the view using finger (Flicking), I could see at the center of the view there is a flickering effect, the view is not scrolled smoothly, instead the textbox lables are having a flickering or waving effect. Anyone has idea how to avoid this behaviour ?

      For your info, the listview has already been set by a property boundsbehaviour: Flickable.StopAtBounds

      R Offline
      R Offline
      Roumed
      wrote on last edited by
      #2

      @AbuFahima What kind of text boxes do you use?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luosen
        wrote on last edited by
        #3

        maybe more cache buffer will helpful

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AbuFahima
          wrote on last edited by
          #4

          Hi All,

          My issue is resolved. I got a hint from one of the website, ( can't recollect the URL now ), that the root cause of the issue is due to painted width. Instead of giving a fixed width for textbox labels, I gave painted width. So when the scroll is flicked, the rendering took time and hence the waving effect. After I changed the painted width to actual width, the waving effect is gone. Thanks guys for your suggestions.

          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