Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QListView ignoring ScrollPerPixel on Sierra, High Sierra (Qt-5.12.0)

QListView ignoring ScrollPerPixel on Sierra, High Sierra (Qt-5.12.0)

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 795 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    Hi there!

    This simple pyqt example demonstrates the problem:

    import time
    
    app = QApplication(sys.argv)
    
    w = QListView()
    m = QStringListModel()
    m.setStringList([str(time.time()) for i in range(1000)])
    w.setModel(m)
    w.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel)
    w.show()
    
    app.exec_()
    

    https://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      No it doesn't. Where are your imports for the Qt framework? I've become a lot more demanding lately of examples incuding the necessary imports, instead of assuming folks know where all the components come from. It saves the respondent time, so think of it as a courtesy.

      TIA

      The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        Thank you. Here is all of it:

        import sys, time
        
        from PyQt5.QtCore import *
        from PyQt5.QtGui import *
        from PyQt5.QtWidgets import *
        
        app = QApplication(sys.argv)
        
        w = QListView()
        m = QStringListModel()
        m.setStringList([str(time.time()) for i in range(1000)])
        w.setModel(m)
        w.setVerticalScrollMode(QAbstractItemView.ScrollPerPixel)
        w.show()
        
        app.exec_()
        

        https://alaskafamilysystems.com/

        1 Reply Last reply
        0
        • Kent-DorfmanK Offline
          Kent-DorfmanK Offline
          Kent-Dorfman
          wrote on last edited by
          #4

          at least on 5.11 partial (pixel specific) scrolling does seem to work.

          just ran it and behaved as expected.

          Fedora29 linux
          Qt 5.11

          The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

          P 1 Reply Last reply
          0
          • Kent-DorfmanK Kent-Dorfman

            at least on 5.11 partial (pixel specific) scrolling does seem to work.

            just ran it and behaved as expected.

            Fedora29 linux
            Qt 5.11

            P Offline
            P Offline
            patrickkidd
            wrote on last edited by
            #5

            @Kent-Dorfman You are running linux. The report is that it doesn't work on Sierra, High Sierra. It works fine on Mojave, for example.

            https://alaskafamilysystems.com/

            1 Reply Last reply
            0
            • Kent-DorfmanK Offline
              Kent-DorfmanK Offline
              Kent-Dorfman
              wrote on last edited by
              #6

              gotcha. not sure about MAC compatibility.

              The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                patrickkidd
                wrote on last edited by
                #7

                It looks like all QScrollAreas ignore ScrollPerPixel on Sierra. How is this possible?

                https://alaskafamilysystems.com/

                P 1 Reply Last reply
                0
                • P patrickkidd

                  It looks like all QScrollAreas ignore ScrollPerPixel on Sierra. How is this possible?

                  P Offline
                  P Offline
                  patrickkidd
                  wrote on last edited by
                  #8

                  @patrickkidd Turns out this is only doing this when macOS is a parallels guest OS, even for Mojave. Strange.

                  I wonder what this could be?

                  https://alaskafamilysystems.com/

                  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