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. wheelEvent is calling twice on MAC.
Forum Updated to NodeBB v4.3 + New Features

wheelEvent is calling twice on MAC.

Scheduled Pinned Locked Moved Solved General and Desktop
qscrollbarqscrollareaqwheelevent
4 Posts 2 Posters 1.6k 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.
  • T Offline
    T Offline
    tokafr
    wrote on 28 Jun 2017, 13:26 last edited by
    #1

    Hello
    I have QScrollArea subclassed object where I set widget with items. I have reimplemented wheelEvent method of QScrollArea where I set the value of verticalScrollBar(). The problem is that on MAC OSX this event is invoked twice on mouse scroll, but when the window is not active it invoked only once.
    any idea why it may be invoked twice?
    thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Jun 2017, 21:42 last edited by
      #2

      Hi,

      You need to provide more information.

      What version of Qt ?
      What version of macOS ?
      What hardware are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tokafr
        wrote on 29 Jun 2017, 06:39 last edited by tokafr
        #3

        Qt version is 4.8
        MacOSX version 10.12.5 Siera
        Mac Mini

        I have found a workaround, if I set Qt::WA_NoMousePropagation attribute to scrollarea it is calling only once.

        1 Reply Last reply
        1
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 29 Jun 2017, 06:58 last edited by
          #4

          AFAIK, the Qt 4.8 series has no release officially supporting such a recent version of macOS. Therefore you may have surprises. Note that Qt 4 has reached end of life so unless you are locked to that version, you should really consider updating to Qt 5 which is now at it's 5.9.0 release.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          28 Jun 2017, 13:26

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved