I am trying to develop an application in which i want to select pixel using mouse as same way as shown on the image i.e. On the display area the total number of pixels are same as camera sensor size .So when i put my cursor on to the display area it show select that position as stating position and then as shown in figure it should draw the read line and calculate the number of pixel and then end point it showld the same straight line. See the image uploaded. I am using python and pyqt to do so. Could anyone tell how can implement like this. https://i.sstatic.net/eHjutavI.png Total number of Sensor pixels in my case is 1920 x 1200 . I want to start it so any logic or sample code will work Continue reading...