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. QMdiarea with multiple QGLwidget windows with cursors in each window
Qt 6.11 is out! See what's new in the release blog

QMdiarea with multiple QGLwidget windows with cursors in each window

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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
    pmaynard
    wrote on last edited by
    #1

    I'm trying to display "linked" images (say an original and an enhanced version) and as I move the mouse in the primary GLWidget window I want a 2nd cursor to "track" my primary system cursor location in the 2nd window. Can I do this with QCursor? All the setPos() and mapFromGlobal() calls always give me screen coordinates - not widget coordinates. And when I call setPos() both with and without calls to mapFromGlobal() the cursor jumps out of my mdiApp to the top left of the screen.

    If I can't use QCursor, would I be better off using OpenGL or Qt Paint functions to create my 2nd cursor?

    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