Results 1 to 3 of 3

Thread: QMdiapp and with multiple windows and cursors in each window

  1. #1
    Join Date
    Aug 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default QMdiapp and with multiple windows and cursors in each window

    I'm trying display two images side by side (an original and an enhanced copy), and I want to have the position of the system cursor in one QGLWidget mirrored in the other. I've created a QCursor for the 2nd window/QGLWidget, called (widget)->setCursor(), and then (cursor)->setPos(x,y). When I do this the cursor jumps out of the widget and MdiApp and lands in the top left of the monitor.

    Can I have 2 cursors? If yes, can anyone give me any tips on how to do this so that the 2nd cursor stays in the intended QGLWidget? If not, then I can choose between drawing the 2nd cursor as an overlay with openGL or QPainter. Any recommendations?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QMdiapp and with multiple windows and cursors in each window

    Why you need 2 cursors? Do you have two keyboards/Mouse?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Aug 2013
    Posts
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QMdiapp and with multiple windows and cursors in each window

    I'm displaying two (or more) geo-coincident images that are locked in roam and zoom. When I move the system cursor over image 1, I want to see a cursor(s) in the other images at the same geo-location. For applications that depend on a human to determine what the object is at a particular location, it is helpful to have multiple sensor types and for small targets, it is very helpful to have a cursor pointing at the exact same pixel(s) in the different images.

Similar Threads

  1. Qt Quick cursors
    By nigec in forum Newbie
    Replies: 0
    Last Post: 19th March 2013, 08:40
  2. Cursors in SQL
    By Ali Reza in forum General Programming
    Replies: 0
    Last Post: 4th November 2012, 19:22
  3. Replies: 1
    Last Post: 11th January 2008, 09:59
  4. Qt Oracle too many opened cursors
    By sureshbabu in forum Qt Programming
    Replies: 1
    Last Post: 30th November 2007, 18:09
  5. Onde datatable with difirent cursors
    By zlatko in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2006, 12:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.