Results 1 to 2 of 2

Thread: Drawing Rectangle with mouse press and release

  1. #1
    Join Date
    Aug 2014
    Posts
    9
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Drawing Rectangle with mouse press and release

    Hello Everyone,

    I have an image displayed on QLabel and in that image I have to select co-ordinates on Mouse press and Release event. I have done that and now I am thinking to start drawing a rectangle when the mouse is pressed and finish the rectangle when the mouse is released. The rectangle should be in some color. any suggestions with examples will be highly appreciated.


    Thanks in advance!!!


    Regards
    Jakr1387

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Drawing Rectangle with mouse press and release

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Mouse Press/Release Events
    By Vivek1982 in forum Newbie
    Replies: 27
    Last Post: 22nd August 2014, 13:17
  2. Replies: 5
    Last Post: 24th June 2011, 12:07
  3. Replies: 6
    Last Post: 27th January 2011, 17:06
  4. How catch key press and key release for entire application
    By hubbobubbo in forum Qt Programming
    Replies: 4
    Last Post: 1st June 2010, 20:53
  5. Drawing a selection rectangle
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 4th April 2009, 15:47

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.