Results 1 to 1 of 1

Thread: Mouse selection handler ?

  1. #1
    Join Date
    Mar 2014
    Posts
    15
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Mouse selection handler ?

    Is there a way to get the coordinates of a mouse selection ?

    I want to create something like a selecting in desktop/files , when you go to your desktop and click left button and drag it you can see a blue selecting " in windows at least " that you can select things using it..

    I want something like that , when the user clicks a button the mouse acts like it acts in files and select things and then return the coordinates or a graph view.

    Basically you know the tool called snipping tool in windows ? you know when you click the button it renders a thing that lets you select what you want ? that's what I want.

    can you direct me to a class or something that gives function that does the same job ?


    Added after 1 57 minutes:


    I followed this:

    http://qt-project.org/doc/qt-4.8/qrubberband.html

    and it's working great except I want it to get the coordinates outside of my program not just inside it.
    Last edited by Being friendzoned sucks; 10th May 2014 at 00:50.

Similar Threads

  1. mouse selection of overlapping ellipses
    By imagyne in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2011, 08:59
  2. Question about how to do a mouse selection box
    By aarelovich in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2010, 13:01
  3. Question about mouse,keyboard event handler?
    By Sheng in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2009, 07:50
  4. mouse handler
    By ahmedKhaled in forum Qt Programming
    Replies: 0
    Last Post: 3rd February 2009, 08:44
  5. Dragging mouse selection in QTableWidget
    By yartov in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2008, 15:03

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.