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. captureMouse --> wheelEvent
Forum Updated to NodeBB v4.3 + New Features

captureMouse --> wheelEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 457 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.
  • conradjonesC Offline
    conradjonesC Offline
    conradjones
    wrote on last edited by
    #1

    I am developing a QT5 based app.
    On kubuntu 16.04.

    I am developing a custom QWidget derived class as a control.

    I need to capture mouse wheel events off screen, if the user has moved the mouse off the screen whilst the mouse button is pressed, i need the wheel to zoom in and out.

    Mouse wheel events are fired when the cursor is inside the QWidget but not inside. (i.e. my wheelEvent)

    captureMouse doesn't seem to help, and the docs say it is not necessary as it is fired when the mouse is pressed.

    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